summaryrefslogtreecommitdiff
path: root/src/passes/PostEmscripten.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-11-18 19:03:39 -0800
committerGitHub <noreply@github.com>2019-11-18 19:03:39 -0800
commit9d21a951dfc60a0fed861763f50f4130dd0a42b6 (patch)
treee6f0e840ca0d4db7f18b381a279c32b1e1c2feac /src/passes/PostEmscripten.cpp
parentee3022fd3be7ba0b9e7a12e426a8246134134cc4 (diff)
downloadbinaryen-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