diff options
author | Alon Zakai <azakai@google.com> | 2019-11-18 19:03:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-18 19:03:39 -0800 |
commit | 9d21a951dfc60a0fed861763f50f4130dd0a42b6 (patch) | |
tree | e6f0e840ca0d4db7f18b381a279c32b1e1c2feac /src/passes/PostEmscripten.cpp | |
parent | ee3022fd3be7ba0b9e7a12e426a8246134134cc4 (diff) | |
download | binaryen-9d21a951dfc60a0fed861763f50f4130dd0a42b6.tar.gz binaryen-9d21a951dfc60a0fed861763f50f4130dd0a42b6.tar.bz2 binaryen-9d21a951dfc60a0fed861763f50f4130dd0a42b6.zip |
Refactor a CallGraphPropertyAnalysis helper [NFC] (#2441)
This moves code out of Asyncify into a general helper class. The class
automates scanning the functions for a property, then propagating it to
functions that call them. In Asyncify, the property is "may call something
that leads to sleep", and we propagate backwards to callers, to find
all those that may sleep.
This will be useful in a future exceptions-optimizing pass I want to write,
where the property will be "may throw". We will then be able to remove
exceptions overhead in cases that definitely do not throw.
Diffstat (limited to 'src/passes/PostEmscripten.cpp')
0 files changed, 0 insertions, 0 deletions