diff options
author | Alon Zakai <azakai@google.com> | 2021-05-05 19:12:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 19:12:01 -0700 |
commit | 16dc2d06041473b838e5486a620e53416ff7e9fd (patch) | |
tree | 937ae665e582fd90107fe6e60ea9deac6fc2d6bc /src/passes/StackIR.cpp | |
parent | 5387a0b1ffcaf925b40ee661063893c475d4c632 (diff) | |
download | binaryen-16dc2d06041473b838e5486a620e53416ff7e9fd.tar.gz binaryen-16dc2d06041473b838e5486a620e53416ff7e9fd.tar.bz2 binaryen-16dc2d06041473b838e5486a620e53416ff7e9fd.zip |
Allow only computing necessary influences in LocalGraph. NFC (#3861)
Some passes need setInfluences but not getInfluences, but were
computing them nonetheless.
This makes e.g. MergeLocals 12% faster. It will also help use LocalGraph
in new passes with less worries about speed.
Diffstat (limited to 'src/passes/StackIR.cpp')
-rw-r--r-- | src/passes/StackIR.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/StackIR.cpp b/src/passes/StackIR.cpp index 6d163d897..fbb990fe0 100644 --- a/src/passes/StackIR.cpp +++ b/src/passes/StackIR.cpp @@ -112,7 +112,7 @@ private: // TODO: we can do this a lot faster, as we just care about linear // control flow. LocalGraph localGraph(func); - localGraph.computeInfluences(); + localGraph.computeSetInfluences(); // We maintain a stack of relevant values. This contains: // * a null for each actual value that the value stack would have // * an index of each LocalSet that *could* be on the value |