Mercurial > hg > truffle
comparison graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/MethodSubstitutionTest.java @ 9049:6d376d09880b
Make CanonicalizerPhase reentrant.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 12 Apr 2013 13:50:45 +0200 |
parents | e7766460ddb3 |
children | b9cf7d0b598e |
comparison
equal
deleted
inserted
replaced
9048:5ca15f09106c | 9049:6d376d09880b |
---|---|
52 Assumptions assumptions = new Assumptions(true); | 52 Assumptions assumptions = new Assumptions(true); |
53 new ComputeProbabilityPhase().apply(graph); | 53 new ComputeProbabilityPhase().apply(graph); |
54 Debug.dump(graph, "Graph"); | 54 Debug.dump(graph, "Graph"); |
55 new InliningPhase(runtime(), null, replacements, assumptions, null, phasePlan, OptimisticOptimizations.ALL).apply(graph); | 55 new InliningPhase(runtime(), null, replacements, assumptions, null, phasePlan, OptimisticOptimizations.ALL).apply(graph); |
56 Debug.dump(graph, "Graph"); | 56 Debug.dump(graph, "Graph"); |
57 new CanonicalizerPhase(runtime(), assumptions).apply(graph); | 57 new CanonicalizerPhase.Instance(runtime(), assumptions).apply(graph); |
58 new DeadCodeEliminationPhase().apply(graph); | 58 new DeadCodeEliminationPhase().apply(graph); |
59 | 59 |
60 assertNotInGraph(graph, Invoke.class); | 60 assertNotInGraph(graph, Invoke.class); |
61 return graph; | 61 return graph; |
62 } | 62 } |