Skip to content

Commit

Permalink
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -93,9 +93,6 @@ public void generateInstructionsForIntepretation() {

cfg.getExitBB().getLabel().setTargetPC(ipc + 1); // Exit BB ipc

// System.out.println("SCOPE: " + getName());
// System.out.println("INSTRS: " + cfg().toStringInstrs());

Instr[] linearizedInstrArray = newInstrs.toArray(new Instr[newInstrs.size()]);

// Pass 2: Use ipc info from previous to mark all linearized instrs rpc
@@ -115,6 +112,9 @@ public void generateInstructionsForIntepretation() {

instructions = linearizedInstrArray;
temporaryVariablecount = getScope().getTemporaryVariablesCount();

// System.out.println("SCOPE: " + getScope().getName());
// System.out.println("INSTRS: " + cfg.toStringInstrs());
}

@Override
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ public Object execute(IRScope s, Object... data) {
run(c, false, true);
}

for (BasicBlock b: ((CFG) data[0]).getBasicBlocks()) {
for (BasicBlock b: s.getCFG().getBasicBlocks()) {
runLocalOptsOnInstrList(s, b.getInstrs().listIterator(), false);
}

0 comments on commit 6ec9f98

Please sign in to comment.