use of org.graalvm.compiler.nodes.StructuredGraph in project graal by oracle.
the class PEAReadEliminationTest method testUnsafe3.
@Test
public void testUnsafe3() {
StructuredGraph graph = processMethod("testUnsafe3Snippet");
assertDeepEquals(1, graph.getNodes().filter(RawLoadNode.class).count());
}
use of org.graalvm.compiler.nodes.StructuredGraph in project graal by oracle.
the class PEAReadEliminationTest method testUnsafe2.
@Test
public void testUnsafe2() {
StructuredGraph graph = processMethod("testUnsafe2Snippet");
assertDeepEquals(3, graph.getNodes().filter(RawLoadNode.class).count());
}
use of org.graalvm.compiler.nodes.StructuredGraph in project graal by oracle.
the class PEAReadEliminationTest method testIndexed3.
@Test
public void testIndexed3() {
StructuredGraph graph = processMethod("testIndexed3Snippet");
assertDeepEquals(3, graph.getNodes().filter(LoadIndexedNode.class).count());
}
use of org.graalvm.compiler.nodes.StructuredGraph in project graal by oracle.
the class PEAReadEliminationTest method testIndexed1.
@Test
public void testIndexed1() {
StructuredGraph graph = processMethod("testIndexed1Snippet");
assertDeepEquals(0, graph.getNodes().filter(LoadIndexedNode.class).count());
}
use of org.graalvm.compiler.nodes.StructuredGraph in project graal by oracle.
the class PEAReadEliminationTest method testIndexed2.
@Test
public void testIndexed2() {
StructuredGraph graph = processMethod("testIndexed2Snippet");
assertDeepEquals(3, graph.getNodes().filter(LoadIndexedNode.class).count());
assertDeepEquals(7, graph.getNodes().filter(StoreIndexedNode.class).count());
}
Aggregations