< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/LIR.java

Print this page

        

*** 26,41 **** --- 26,43 ---- import java.util.ArrayList; import java.util.Arrays; import java.util.List; + import org.graalvm.compiler.asm.Label; import org.graalvm.compiler.core.common.cfg.AbstractBlockBase; import org.graalvm.compiler.core.common.cfg.AbstractControlFlowGraph; import org.graalvm.compiler.core.common.cfg.BlockMap; import org.graalvm.compiler.debug.DebugContext; import org.graalvm.compiler.lir.StandardOp.BlockEndOp; import org.graalvm.compiler.lir.StandardOp.LabelOp; + import org.graalvm.compiler.lir.StandardOp.LabelHoldingOp; import org.graalvm.compiler.lir.gen.LIRGenerator; import org.graalvm.compiler.options.OptionValues; /** * This class implements the overall container for the LIR graph and directs its construction,
*** 231,242 **** for (AbstractBlockBase<?> block : codeEmittingOrder()) { if (block == null) { continue; } for (LIRInstruction inst : lirInstructions.get(block)) { ! if (inst instanceof LabelOp) { ! ((LabelOp) inst).getLabel().reset(); } } } } --- 233,247 ---- for (AbstractBlockBase<?> block : codeEmittingOrder()) { if (block == null) { continue; } for (LIRInstruction inst : lirInstructions.get(block)) { ! if (inst instanceof LabelHoldingOp) { ! Label label = ((LabelHoldingOp) inst).getLabel(); ! if (label != null) { ! label.reset(); ! } } } } }
< prev index next >