src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/PEGraphDecoderTest.java
equal
deleted
inserted
replaced
44 import org.graalvm.compiler.nodes.memory.ReadNode; |
44 import org.graalvm.compiler.nodes.memory.ReadNode; |
45 import org.graalvm.compiler.nodes.memory.address.AddressNode; |
45 import org.graalvm.compiler.nodes.memory.address.AddressNode; |
46 import org.graalvm.compiler.nodes.memory.address.OffsetAddressNode; |
46 import org.graalvm.compiler.nodes.memory.address.OffsetAddressNode; |
47 import org.graalvm.compiler.nodes.spi.CoreProviders; |
47 import org.graalvm.compiler.nodes.spi.CoreProviders; |
48 import org.graalvm.compiler.phases.OptimisticOptimizations; |
48 import org.graalvm.compiler.phases.OptimisticOptimizations; |
49 import org.graalvm.compiler.phases.common.CanonicalizerPhase; |
|
50 import org.graalvm.compiler.replacements.CachingPEGraphDecoder; |
49 import org.graalvm.compiler.replacements.CachingPEGraphDecoder; |
51 import jdk.internal.vm.compiler.word.LocationIdentity; |
50 import jdk.internal.vm.compiler.word.LocationIdentity; |
52 import org.junit.Test; |
51 import org.junit.Test; |
53 |
52 |
54 import jdk.vm.ci.meta.JavaKind; |
53 import jdk.vm.ci.meta.JavaKind; |
144 decoder.decode(testMethod, false, false); |
143 decoder.decode(testMethod, false, false); |
145 debug.dump(DebugContext.BASIC_LEVEL, targetGraph, "Target Graph"); |
144 debug.dump(DebugContext.BASIC_LEVEL, targetGraph, "Target Graph"); |
146 targetGraph.verify(); |
145 targetGraph.verify(); |
147 |
146 |
148 CoreProviders context = getProviders(); |
147 CoreProviders context = getProviders(); |
149 new CanonicalizerPhase().apply(targetGraph, context); |
148 createCanonicalizerPhase().apply(targetGraph, context); |
150 targetGraph.verify(); |
149 targetGraph.verify(); |
151 |
150 |
152 } catch (Throwable ex) { |
151 } catch (Throwable ex) { |
153 if (targetGraph != null) { |
152 if (targetGraph != null) { |
154 debug.dump(DebugContext.BASIC_LEVEL, targetGraph, ex.toString()); |
153 debug.dump(DebugContext.BASIC_LEVEL, targetGraph, ex.toString()); |