< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/NestedLoopTest.java

Print this page

        

*** 159,171 **** Assert.assertTrue(containsDirect(nestedLoop, b, cfg)); Assert.assertTrue(containsDirect(innerMostLoop, c, cfg)); Assert.assertTrue(containsDirect(innerMostLoop, d, cfg)); Assert.assertTrue(contains(rootLoop, d, cfg)); Assert.assertTrue(contains(nestedLoop, d, cfg)); ! Assert.assertEquals(rootExits, rootLoop.getExits().size()); ! Assert.assertEquals(nestedExits, nestedLoop.getExits().size()); ! Assert.assertEquals(innerExits, innerMostLoop.getExits().size()); debug.dump(DebugContext.BASIC_LEVEL, graph, "Graph"); } private static boolean contains(Loop<Block> loop, Invoke node, ControlFlowGraph cfg) { Block block = cfg.blockFor((Node) node); --- 159,171 ---- Assert.assertTrue(containsDirect(nestedLoop, b, cfg)); Assert.assertTrue(containsDirect(innerMostLoop, c, cfg)); Assert.assertTrue(containsDirect(innerMostLoop, d, cfg)); Assert.assertTrue(contains(rootLoop, d, cfg)); Assert.assertTrue(contains(nestedLoop, d, cfg)); ! Assert.assertEquals(rootExits, rootLoop.getLoopExits().size()); ! Assert.assertEquals(nestedExits, nestedLoop.getLoopExits().size()); ! Assert.assertEquals(innerExits, innerMostLoop.getLoopExits().size()); debug.dump(DebugContext.BASIC_LEVEL, graph, "Graph"); } private static boolean contains(Loop<Block> loop, Invoke node, ControlFlowGraph cfg) { Block block = cfg.blockFor((Node) node);
< prev index next >