Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/SimpleCFGTest.java @ 19250:8ab925a6f724
made Assumptions be part of a StructuredGraph
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 11 Feb 2015 10:13:08 +0100 |
parents | 46c2e70d54ad |
children | a0a760b0fb5f |
comparison
equal
deleted
inserted
replaced
19249:ec8402f4e00a | 19250:8ab925a6f724 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.compiler.test; | 23 package com.oracle.graal.compiler.test; |
24 | 24 |
25 import static com.oracle.graal.api.code.Assumptions.*; | |
25 import static org.junit.Assert.*; | 26 import static org.junit.Assert.*; |
26 | 27 |
27 import java.util.*; | 28 import java.util.*; |
28 | 29 |
29 import org.junit.*; | 30 import org.junit.*; |
38 Debug.dump(graph, "Graph"); | 39 Debug.dump(graph, "Graph"); |
39 } | 40 } |
40 | 41 |
41 @Test | 42 @Test |
42 public void testImplies() { | 43 public void testImplies() { |
43 StructuredGraph graph = new StructuredGraph(); | 44 StructuredGraph graph = new StructuredGraph(ALLOW_OPTIMISTIC_ASSUMPTIONS); |
44 | 45 |
45 AbstractEndNode trueEnd = graph.add(new EndNode()); | 46 AbstractEndNode trueEnd = graph.add(new EndNode()); |
46 AbstractEndNode falseEnd = graph.add(new EndNode()); | 47 AbstractEndNode falseEnd = graph.add(new EndNode()); |
47 | 48 |
48 AbstractBeginNode trueBegin = graph.add(new BeginNode()); | 49 AbstractBeginNode trueBegin = graph.add(new BeginNode()); |