< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/extended/BranchProbabilityNode.java

Print this page

        

*** 80,89 **** --- 80,92 ---- return condition; } @Override public void simplify(SimplifierTool tool) { + if (!hasUsages()) { + return; + } if (probability.isConstant()) { double probabilityValue = probability.asJavaConstant().asDouble(); if (probabilityValue < 0.0) { throw new GraalError("A negative probability of " + probabilityValue + " is not allowed!"); } else if (probabilityValue > 1.0) {
< prev index next >