src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/ConditionalEliminationMulTest.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. |
76 |
76 |
77 private StructuredGraph prepareGraph(String snippet) { |
77 private StructuredGraph prepareGraph(String snippet) { |
78 StructuredGraph graph = parseEager(snippet, AllowAssumptions.NO); |
78 StructuredGraph graph = parseEager(snippet, AllowAssumptions.NO); |
79 HighTierContext context = getDefaultHighTierContext(); |
79 HighTierContext context = getDefaultHighTierContext(); |
80 new ConditionalEliminationPhase(false).apply(graph, context); |
80 new ConditionalEliminationPhase(false).apply(graph, context); |
81 CanonicalizerPhase c = new CanonicalizerPhase(); |
81 CanonicalizerPhase c = createCanonicalizerPhase(); |
82 c.apply(graph, context); |
82 c.apply(graph, context); |
83 new ConditionalEliminationPhase(false).apply(graph, context); |
83 new ConditionalEliminationPhase(false).apply(graph, context); |
84 c.apply(graph, context); |
84 c.apply(graph, context); |
85 return graph; |
85 return graph; |
86 } |
86 } |