88 try (DebugContext.Scope s = debug.scope("ReadAfterCheckCastTest", new DebugDumpScope(snippet))) { |
88 try (DebugContext.Scope s = debug.scope("ReadAfterCheckCastTest", new DebugDumpScope(snippet))) { |
89 // check shape of graph, with lots of assumptions. will probably fail if graph |
89 // check shape of graph, with lots of assumptions. will probably fail if graph |
90 // structure changes significantly |
90 // structure changes significantly |
91 StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES); |
91 StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES); |
92 CoreProviders context = getProviders(); |
92 CoreProviders context = getProviders(); |
93 CanonicalizerPhase canonicalizer = new CanonicalizerPhase(); |
93 CanonicalizerPhase canonicalizer = createCanonicalizerPhase(); |
94 new LoweringPhase(canonicalizer, LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, context); |
94 new LoweringPhase(canonicalizer, LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, context); |
95 new FloatingReadPhase().apply(graph); |
95 new FloatingReadPhase().apply(graph); |
96 canonicalizer.apply(graph, context); |
96 canonicalizer.apply(graph, context); |
97 |
97 |
98 debug.dump(DebugContext.BASIC_LEVEL, graph, "After lowering"); |
98 debug.dump(DebugContext.BASIC_LEVEL, graph, "After lowering"); |