Skip to content

Commit d0c419f

Browse files
committed
remove old comments in SimplifyLocals
1 parent b2fbce4 commit d0c419f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/passes/SimplifyLocals.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct SimplifyLocals : public WalkerPass<LinearExecutionWalker<SimplifyLocals,
6262
void visitGetLocal(GetLocal *curr) {
6363
auto found = sinkables.find(curr->index);
6464
if (found != sinkables.end()) {
65-
// sink it, and nop the origin TODO: clean up nops
65+
// sink it, and nop the origin
6666
replaceCurrent(*found->second.item);
6767
// reuse the getlocal that is dying
6868
*found->second.item = curr;
@@ -77,7 +77,6 @@ struct SimplifyLocals : public WalkerPass<LinearExecutionWalker<SimplifyLocals,
7777
void visitSetLocal(SetLocal *curr) {
7878
// if we are a potentially-sinkable thing, forget it - this
7979
// write overrides the last TODO: optimizable
80-
// TODO: if no get_locals left, can remove the set as well (== expressionizer in emscripten optimizer)
8180
auto found = sinkables.find(curr->index);
8281
if (found != sinkables.end()) {
8382
sinkables.erase(found);

0 commit comments

Comments
 (0)