src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/GuardPrioritiesTest.java
equal
deleted
inserted
replaced
84 } |
84 } |
85 |
85 |
86 private StructuredGraph prepareGraph(String method) { |
86 private StructuredGraph prepareGraph(String method) { |
87 StructuredGraph graph = parseEager(method, StructuredGraph.AllowAssumptions.YES); |
87 StructuredGraph graph = parseEager(method, StructuredGraph.AllowAssumptions.YES); |
88 HighTierContext highTierContext = getDefaultHighTierContext(); |
88 HighTierContext highTierContext = getDefaultHighTierContext(); |
89 CanonicalizerPhase canonicalizer = new CanonicalizerPhase(); |
89 CanonicalizerPhase canonicalizer = createCanonicalizerPhase(); |
90 new ConvertDeoptimizeToGuardPhase().apply(graph, highTierContext); |
90 new ConvertDeoptimizeToGuardPhase().apply(graph, highTierContext); |
91 new LoweringPhase(canonicalizer, LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, highTierContext); |
91 new LoweringPhase(canonicalizer, LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, highTierContext); |
92 new FloatingReadPhase().apply(graph); |
92 new FloatingReadPhase().apply(graph); |
93 return graph; |
93 return graph; |
94 } |
94 } |