# HG changeset patch # User Thomas Wuerthinger # Date 1309449622 -7200 # Node ID ab218bdf7077125222be27db49d7925b203573c6 # Parent 17d96a6af824b1d6108cef893bcdab981975f711 Removed unnecessary jump. diff -r 17d96a6af824 -r ab218bdf7077 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRBlock.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRBlock.java Thu Jun 30 17:53:23 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRBlock.java Thu Jun 30 18:00:22 2011 +0200 @@ -276,7 +276,12 @@ if (instructionsList.size() == 0) { return false; } - LIROpcode code = instructionsList.get(instructionsList.size() - 1).code; + LIRInstruction lirInstruction = instructionsList.get(instructionsList.size() - 1); + if (lirInstruction instanceof LIRXirInstruction) { + LIRXirInstruction lirXirInstruction = (LIRXirInstruction) lirInstruction; + return (lirXirInstruction.falseSuccessor() != null) && (lirXirInstruction.trueSuccessor() != null); + } + LIROpcode code = lirInstruction.code; return code == LIROpcode.Branch || code == LIROpcode.TableSwitch; } }