src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/ConditionalEliminationTest13.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 import org.graalvm.compiler.debug.DebugContext; |
27 import org.graalvm.compiler.debug.DebugContext; |
28 import org.graalvm.compiler.nodes.StructuredGraph; |
28 import org.graalvm.compiler.nodes.StructuredGraph; |
29 import org.graalvm.compiler.nodes.ValueNode; |
29 import org.graalvm.compiler.nodes.ValueNode; |
30 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext; |
30 import org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext; |
31 import org.graalvm.compiler.nodes.graphbuilderconf.InlineInvokePlugin; |
31 import org.graalvm.compiler.nodes.graphbuilderconf.InlineInvokePlugin; |
|
32 import org.graalvm.compiler.nodes.spi.CoreProviders; |
32 import org.graalvm.compiler.phases.common.CanonicalizerPhase; |
33 import org.graalvm.compiler.phases.common.CanonicalizerPhase; |
33 import org.graalvm.compiler.phases.tiers.PhaseContext; |
|
34 import org.junit.Ignore; |
34 import org.junit.Ignore; |
35 import org.junit.Test; |
35 import org.junit.Test; |
36 |
36 |
37 import jdk.vm.ci.meta.ResolvedJavaMethod; |
37 import jdk.vm.ci.meta.ResolvedJavaMethod; |
38 |
38 |
308 public void test14() { |
308 public void test14() { |
309 testConditionalElimination("testSnippet14", "referenceSnippet14"); |
309 testConditionalElimination("testSnippet14", "referenceSnippet14"); |
310 } |
310 } |
311 |
311 |
312 @Override |
312 @Override |
313 protected void prepareGraph(StructuredGraph graph, CanonicalizerPhase canonicalizer, PhaseContext context, boolean applyLowering) { |
313 protected void prepareGraph(StructuredGraph graph, CanonicalizerPhase canonicalizer, CoreProviders context, boolean applyLowering) { |
314 super.prepareGraph(graph, canonicalizer, context, applyLowering); |
314 super.prepareGraph(graph, canonicalizer, context, applyLowering); |
315 graph.clearAllStateAfter(); |
315 graph.clearAllStateAfter(); |
316 graph.setGuardsStage(StructuredGraph.GuardsStage.AFTER_FSA); |
316 graph.setGuardsStage(StructuredGraph.GuardsStage.AFTER_FSA); |
317 DebugContext debug = graph.getDebug(); |
317 DebugContext debug = graph.getDebug(); |
318 debug.dump(DebugContext.BASIC_LEVEL, graph, "After preparation"); |
318 debug.dump(DebugContext.BASIC_LEVEL, graph, "After preparation"); |