# HG changeset patch # User Lukas Stadler # Date 1400760295 -7200 # Node ID 9ce2ca72efef374b0f8ed7a12dfd22d53dd78067 # Parent e7277bf3b171d06ac8215a136722798784082f88 small cleanup in LinearScan diff -r e7277bf3b171 -r 9ce2ca72efef graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Thu May 22 14:04:55 2014 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Thu May 22 14:04:55 2014 +0200 @@ -824,14 +824,12 @@ // liveOut(block) is the union of liveIn(sux), for successors sux of block int n = block.getSuccessorCount(); if (n > 0) { + liveOut.clear(); // block has successors if (n > 0) { - liveOut.clear(); for (AbstractBlock successor : block.getSuccessors()) { liveOut.or(blockData.get(successor).liveIn); } - } else { - liveOut.clear(); } if (!blockSets.liveOut.equals(liveOut)) {