Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/StampCanonicalizerTest.java @ 7827:961ad124cb21
Convert indexScalingEnabled boolean into an indexScaling integer value. This change removed the dependency on TargetDescription in large parts of the system.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 19 Feb 2013 19:56:44 -0800 |
parents | 5e3d1a68664e |
children | 6d376d09880b |
comparison
equal
deleted
inserted
replaced
7826:2fd6087a272c | 7827:961ad124cb21 |
---|---|
96 testZeroReturn("divStamp2"); | 96 testZeroReturn("divStamp2"); |
97 } | 97 } |
98 | 98 |
99 private void testZeroReturn(String methodName) { | 99 private void testZeroReturn(String methodName) { |
100 StructuredGraph graph = parse(methodName); | 100 StructuredGraph graph = parse(methodName); |
101 new CanonicalizerPhase(null, runtime(), new Assumptions(false)).apply(graph); | 101 new CanonicalizerPhase(runtime(), new Assumptions(false)).apply(graph); |
102 new DeadCodeEliminationPhase().apply(graph); | 102 new DeadCodeEliminationPhase().apply(graph); |
103 assertConstantReturn(graph, 0); | 103 assertConstantReturn(graph, 0); |
104 } | 104 } |
105 } | 105 } |