Skip to content

Commit

Permalink
OptimizeTempVarsPass doesn't need to run on child scopes upfront
Browse files Browse the repository at this point in the history
* Let this run on child scopes on demand so that it follows the
  new lifecycle.

* Eliminates crashers when run on closures from parent scopes.
  • Loading branch information
subbuss committed Mar 3, 2015
1 parent 107f4c0 commit 03bc9c6
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -18,10 +18,6 @@ public String getLabel() {

@Override
public Object execute(IRScope s, Object... data) {
for (IRClosure c: s.getClosures()) {
run(c, false, true);
}

optimizeTmpVars(s);

return null;
Expand Down

0 comments on commit 03bc9c6

Please sign in to comment.