diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-17 10:33:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 14:11:04 -0700 |
commit | d0c419f70938023bfc1c72365f9901a718a9eec6 (patch) | |
tree | e34194f1d97ac667e667217cd8e318108519e6ef | |
parent | b2fbce4f40c4b8adfdb7cd291d510de9e7219fc6 (diff) | |
download | binaryen-d0c419f70938023bfc1c72365f9901a718a9eec6.tar.gz binaryen-d0c419f70938023bfc1c72365f9901a718a9eec6.tar.bz2 binaryen-d0c419f70938023bfc1c72365f9901a718a9eec6.zip |
remove old comments in SimplifyLocals
-rw-r--r-- | src/passes/SimplifyLocals.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index fbdc248e3..a4a36c895 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -62,7 +62,7 @@ struct SimplifyLocals : public WalkerPass<LinearExecutionWalker<SimplifyLocals, void visitGetLocal(GetLocal *curr) { auto found = sinkables.find(curr->index); if (found != sinkables.end()) { - // sink it, and nop the origin TODO: clean up nops + // sink it, and nop the origin replaceCurrent(*found->second.item); // reuse the getlocal that is dying *found->second.item = curr; @@ -77,7 +77,6 @@ struct SimplifyLocals : public WalkerPass<LinearExecutionWalker<SimplifyLocals, void visitSetLocal(SetLocal *curr) { // if we are a potentially-sinkable thing, forget it - this // write overrides the last TODO: optimizable - // TODO: if no get_locals left, can remove the set as well (== expressionizer in emscripten optimizer) auto found = sinkables.find(curr->index); if (found != sinkables.end()) { sinkables.erase(found); |