Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ public Object execute(IRScope s, Object... data) {
// Make sure flags are computed
s.computeScopeFlags();

if (!s.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE) && (data.length == 0 || data[0] == false)) {
if (!s.getFlags().contains(IRFlags.REQUIRES_DYNSCOPE) && (data.length == 0 || data[0] != Boolean.TRUE)) {
eliminateLocalVars(s);
} else {
Map<Operand, Operand> varRenameMap = new HashMap<Operand, Operand>();
@@ -145,7 +145,7 @@ public Object execute(IRScope s, Object... data) {
//
// In the current implementation, nested scopes are processed independently (unlike Live Variable Analysis)
// However, since this pass requires LVA information, in reality, we cannot run
for (IRClosure c: s.getClosures()) execute(c, true);
for (IRClosure c: s.getClosures()) execute(c, Boolean.TRUE);
}

s.setDataFlowSolution(StoreLocalVarPlacementProblem.NAME, slvp);

0 comments on commit e09f484

Please sign in to comment.