Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/ea/EarlyReadEliminationTest.java @ 20068:cc3131ff7ce2
Remove GraphCache option.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 29 Mar 2015 20:51:22 +0200 |
parents | 2fd45bb25118 |
children | 6fa45d1d8c70 |
comparison
equal
deleted
inserted
replaced
20067:745e0fbcbdaf | 20068:cc3131ff7ce2 |
---|---|
23 package com.oracle.graal.compiler.test.ea; | 23 package com.oracle.graal.compiler.test.ea; |
24 | 24 |
25 import org.junit.*; | 25 import org.junit.*; |
26 | 26 |
27 import com.oracle.graal.nodes.StructuredGraph.AllowAssumptions; | 27 import com.oracle.graal.nodes.StructuredGraph.AllowAssumptions; |
28 import com.oracle.graal.phases.*; | |
29 import com.oracle.graal.phases.common.*; | 28 import com.oracle.graal.phases.common.*; |
30 import com.oracle.graal.phases.common.inlining.*; | 29 import com.oracle.graal.phases.common.inlining.*; |
31 import com.oracle.graal.phases.tiers.*; | 30 import com.oracle.graal.phases.tiers.*; |
32 import com.oracle.graal.virtual.phases.ea.*; | 31 import com.oracle.graal.virtual.phases.ea.*; |
33 | 32 |
39 } | 38 } |
40 | 39 |
41 @Override | 40 @Override |
42 protected void processMethod(final String snippet) { | 41 protected void processMethod(final String snippet) { |
43 graph = parseEager(getResolvedJavaMethod(snippet), AllowAssumptions.NO); | 42 graph = parseEager(getResolvedJavaMethod(snippet), AllowAssumptions.NO); |
44 HighTierContext context = new HighTierContext(getProviders(), null, getDefaultGraphBuilderSuite(), OptimisticOptimizations.ALL); | 43 HighTierContext context = getDefaultHighTierContext(); |
45 new InliningPhase(new CanonicalizerPhase()).apply(graph, context); | 44 new InliningPhase(new CanonicalizerPhase()).apply(graph, context); |
46 new EarlyReadEliminationPhase(new CanonicalizerPhase()).apply(graph, context); | 45 new EarlyReadEliminationPhase(new CanonicalizerPhase()).apply(graph, context); |
47 } | 46 } |
48 } | 47 } |