< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/SwitchCanonicalizerTest.java
Print this page
rev 56282 : [mq]: graal
*** 118,126 ****
}
private void shouldFoldSwitch(String methodName) {
StructuredGraph graph = parseForCompile(getResolvedJavaMethod(methodName));
new CanonicalizerPhase().apply(graph, getDefaultHighTierContext());
! assertFalse(graph.hasNode(IntegerSwitchNode.TYPE));
}
}
--- 118,126 ----
}
private void shouldFoldSwitch(String methodName) {
StructuredGraph graph = parseForCompile(getResolvedJavaMethod(methodName));
new CanonicalizerPhase().apply(graph, getDefaultHighTierContext());
! assertTrue(graph.getNodes().filter(IntegerSwitchNode.class).isEmpty());
}
}
< prev index next >