Skip to content

Commit

Permalink
Fix for agressive forward push
Browse files Browse the repository at this point in the history
  • Loading branch information
leibnitz27 committed Jul 6, 2014
1 parent 989ef93 commit 4d01cae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,9 @@ private static boolean pushThroughGoto(Method method, Op03SimpleStatement forwar
int idx = statements.indexOf(tgt);
if (idx == 0) return false;
final Op03SimpleStatement before = statements.get(idx - 1);
// TODO : should be simple to verify that the first test is uneccessary.
if (tgt.getSources().contains(before)) return false;
if (tgt.getSources().size() != 1) return false;

InstrIndex beforeTgt = tgt.getIndex().justBefore();
Op03SimpleStatement last = forwardGoto;
Expand Down

0 comments on commit 4d01cae

Please sign in to comment.