src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph.test/src/org/graalvm/compiler/graph/test/NodeUsagesTests.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph.test/src/org/graalvm/compiler/graph/test/NodeUsagesTests.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph.test/src/org/graalvm/compiler/graph/test/NodeUsagesTests.java

Print this page

        

*** 34,43 **** --- 34,44 ---- import org.graalvm.compiler.graph.Graph; import org.graalvm.compiler.graph.Node; import org.graalvm.compiler.graph.NodeClass; import org.graalvm.compiler.nodeinfo.NodeInfo; + import org.graalvm.compiler.options.OptionValues; public class NodeUsagesTests extends GraphTest { @NodeInfo(cycles = CYCLES_IGNORED, size = SIZE_IGNORED) static final class Def extends Node {
*** 64,74 **** } @Test public void testReplaceAtUsages() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 65,76 ---- } @Test public void testReplaceAtUsages() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 93,103 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicateAll() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 95,106 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicateAll() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 122,132 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicateNone() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 125,136 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicateNone() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 151,161 **** assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate1() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 155,166 ---- assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate1() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 182,192 **** assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate2() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 187,198 ---- assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate2() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 213,223 **** assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate0() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 219,230 ---- assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate0() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 244,254 **** assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate02() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 251,262 ---- assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate02() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 275,285 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate023() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 283,294 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate023() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 309,319 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate013() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 318,329 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate013() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 343,353 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate203() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 353,364 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate203() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 377,387 **** assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate01() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 388,399 ---- assertThat(def0.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate01() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
*** 408,418 **** assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate12() { ! Graph graph = new Graph(getOptions()); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0)); --- 420,431 ---- assertThat(def1.usages(), isNotEmpty()); } @Test public void testReplaceAtUsagesWithPredicate12() { ! OptionValues options = getOptions(); ! Graph graph = new Graph(options, getDebug(options)); Def def0 = graph.add(new Def()); Def def1 = graph.add(new Def()); Use use0 = graph.add(new Use(def0, null, null)); Use use1 = graph.add(new Use(null, def0, null)); Use use2 = graph.add(new Use(null, null, def0));
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph.test/src/org/graalvm/compiler/graph/test/NodeUsagesTests.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File