hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/ConditionalEliminationTest13.java
changeset 46640 70bdce04c59b
parent 46371 0337d0617e7b
equal deleted inserted replaced
46638:3c5c50af29a7 46640:70bdce04c59b
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 package org.graalvm.compiler.core.test;
    23 package org.graalvm.compiler.core.test;
    24 
    24 
    25 import org.graalvm.compiler.debug.Debug;
    25 import org.graalvm.compiler.debug.DebugContext;
    26 import org.graalvm.compiler.nodes.StructuredGraph;
    26 import org.graalvm.compiler.nodes.StructuredGraph;
    27 import org.graalvm.compiler.nodes.ValueNode;
    27 import org.graalvm.compiler.nodes.ValueNode;
    28 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext;
    28 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext;
    29 import org.graalvm.compiler.nodes.graphbuilderconf.InlineInvokePlugin;
    29 import org.graalvm.compiler.nodes.graphbuilderconf.InlineInvokePlugin;
    30 import org.graalvm.compiler.phases.common.CanonicalizerPhase;
    30 import org.graalvm.compiler.phases.common.CanonicalizerPhase;
   308     @Override
   308     @Override
   309     protected void prepareGraph(StructuredGraph graph, CanonicalizerPhase canonicalizer, PhaseContext context, boolean applyLowering) {
   309     protected void prepareGraph(StructuredGraph graph, CanonicalizerPhase canonicalizer, PhaseContext context, boolean applyLowering) {
   310         super.prepareGraph(graph, canonicalizer, context, applyLowering);
   310         super.prepareGraph(graph, canonicalizer, context, applyLowering);
   311         graph.clearAllStateAfter();
   311         graph.clearAllStateAfter();
   312         graph.setGuardsStage(StructuredGraph.GuardsStage.AFTER_FSA);
   312         graph.setGuardsStage(StructuredGraph.GuardsStage.AFTER_FSA);
   313         Debug.dump(Debug.BASIC_LEVEL, graph, "After preparation");
   313         DebugContext debug = graph.getDebug();
       
   314         debug.dump(DebugContext.BASIC_LEVEL, graph, "After preparation");
   314         canonicalizer.apply(graph, context);
   315         canonicalizer.apply(graph, context);
   315     }
   316     }
   316 }
   317 }