8253964: [Graal] UnschedulableGraphTest#test01fails with expected:<4> but was:<3>

Reviewed-by: kvn, dlong
This commit is contained in:
David Leopoldseder 2020-10-21 07:34:08 +00:00 committed by Doug Simon
parent bd45191f00
commit c107178bcc

@ -41,6 +41,7 @@ import org.graalvm.compiler.nodes.calc.NegateNode;
import org.graalvm.compiler.nodes.cfg.Block;
import org.graalvm.compiler.nodes.extended.OpaqueNode;
import org.graalvm.compiler.options.OptionValues;
import org.graalvm.compiler.phases.OptimisticOptimizations;
import org.junit.Assert;
import org.junit.Test;
@ -98,6 +99,16 @@ public class UnschedulableGraphTest extends GraalCompilerTest {
return getDebugContext(options, null, method);
}
@Override
protected OptimisticOptimizations getOptimisticOptimizations() {
/*
* Disable optimistic optimizations to make the test more resilient towards wrong/strange
* profiling information and the removal of never executed code as this can cause the
* assertions in this test to fail since the control flow graph is in an uncommon shape.
*/
return OptimisticOptimizations.NONE;
}
@Test
@SuppressWarnings("try")
public void test01() {