src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.loop.phases/src/org/graalvm/compiler/loop/phases/ConvertDeoptimizeToGuardPhase.java
changeset 58877 aec7bf35d6f5
parent 58299 6df94ce3ab2f
equal deleted inserted replaced
58876:1a8d65e71a66 58877:aec7bf35d6f5
   215                             }
   215                             }
   216                             graph.removeSplitPropagate(ifNode, survivingSuccessor);
   216                             graph.removeSplitPropagate(ifNode, survivingSuccessor);
   217 
   217 
   218                             Node newGuard = guard;
   218                             Node newGuard = guard;
   219                             if (survivingSuccessor instanceof LoopExitNode) {
   219                             if (survivingSuccessor instanceof LoopExitNode) {
   220                                 newGuard = ProxyNode.forGuard(guard, (LoopExitNode) survivingSuccessor, graph);
   220                                 newGuard = ProxyNode.forGuard(guard, (LoopExitNode) survivingSuccessor);
   221                             }
   221                             }
   222                             survivingSuccessor.replaceAtUsages(InputType.Guard, newGuard);
   222                             survivingSuccessor.replaceAtUsages(InputType.Guard, newGuard);
   223 
   223 
   224                             graph.getDebug().log("Converting deopt on %-5s branch of %s to guard for remaining branch %s.", negateGuardCondition, ifNode, survivingSuccessor);
   224                             graph.getDebug().log("Converting deopt on %-5s branch of %s to guard for remaining branch %s.", negateGuardCondition, ifNode, survivingSuccessor);
   225                             FixedNode next = pred.next();
   225                             FixedNode next = pred.next();