From f79077ad9e7b1e5b885466dce7f672130ee7efea Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 23 Jan 2025 14:45:35 +0000 Subject: Optimizing: Rename `HCodeFlowSimplifier`... ... to `HControlFlowSimplifier` because "control flow" is the correct technical term. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I2607ac699fa33c3e7ca7f54364e1e8497148412b --- test/663-checker-select-generator/src/Main.java | 50 ++++++++++++------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'test/663-checker-select-generator/src/Main.java') diff --git a/test/663-checker-select-generator/src/Main.java b/test/663-checker-select-generator/src/Main.java index 631210c9bc..baf57e6b22 100644 --- a/test/663-checker-select-generator/src/Main.java +++ b/test/663-checker-select-generator/src/Main.java @@ -21,13 +21,13 @@ public class Main { /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) builder (after) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) control_flow_simplifier (before) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) control_flow_simplifier (after) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValue(boolean) control_flow_simplifier (after) /// CHECK-NOT: Select private static int $noinline$testSimpleDiamondSameValue(boolean bool_param) { int return_value; @@ -41,14 +41,14 @@ public class Main { // Check that we generate a select for a simple diamond pattern, with different values. - /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValue(boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValue(boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: <> Phi [<>,<>] /// CHECK-DAG: Return [<>] /// CHECK-EVAL: set(["<>","<>"]) == set(["<>","<>"]) - /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValue(boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValue(boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 @@ -70,13 +70,13 @@ public class Main { /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) builder (after) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) control_flow_simplifier (before) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) control_flow_simplifier (after) /// CHECK-NOT: Phi - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValue(boolean, boolean) control_flow_simplifier (after) /// CHECK-NOT: Select private static int $noinline$testDoubleDiamondSameValue(boolean bool_param_1, boolean bool_param_2) { int return_value; @@ -94,14 +94,14 @@ public class Main { // Check that we generate a select for a double diamond pattern, with a different value in the outer branch. - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuter(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuter(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: <> Phi [<>,<>,<>] /// CHECK-DAG: Return [<>] /// CHECK-EVAL: set(["<>","<>","<>"]) == set(["<>","<>","<>"]) - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuter(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuter(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -124,14 +124,14 @@ public class Main { // Check that we generate a select for a double diamond pattern, with a different value in the inner branch. - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInner(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInner(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: <> Phi [<>,<>,<>] /// CHECK-DAG: Return [<>] /// CHECK-EVAL: set(["<>","<>","<>"]) == set(["<>","<>","<>"]) - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInner(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInner(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -155,7 +155,7 @@ public class Main { // Check that we generate a select for a double diamond pattern, with a all different values. - /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValue(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValue(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: <> IntConstant 30 @@ -163,7 +163,7 @@ public class Main { /// CHECK-DAG: Return [<>] /// CHECK-EVAL: set(["<>","<>","<>"]) == set(["<>","<>","<>"]) - /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValue(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValue(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -199,7 +199,7 @@ public class Main { /// CHECK: Return [<>] /// CHECK: Return [<>] - /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValueWithReturn(boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testSimpleDiamondSameValueWithReturn(boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> Select [<>,<>,<>] @@ -221,13 +221,13 @@ public class Main { // Same as testSimpleDiamondDifferentValue, but branches return. - /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValueWithReturn(boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValueWithReturn(boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: Return [<>] /// CHECK-DAG: Return [<>] - /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValueWithReturn(boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testSimpleDiamondDifferentValueWithReturn(boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 @@ -248,7 +248,7 @@ public class Main { /// CHECK: Return [<>] /// CHECK: Return [<>] - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueWithReturn(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueWithReturn(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -277,7 +277,7 @@ public class Main { // Same as testDoubleDiamondSameValueButNotAllOuter, but branches return. - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: Return [<>] @@ -285,12 +285,12 @@ public class Main { /// CHECK-DAG: Return [<>] // Note that we have 3 returns as D8 only merges when the line positions are equal. - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) control_flow_simplifier (before) /// CHECK: Return /// CHECK: Return /// CHECK: Return - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllOuterWithReturn(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -312,14 +312,14 @@ public class Main { // Same as testDoubleDiamondSameValueButNotAllInner, but branches return. - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInnerWithReturn(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInnerWithReturn(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: Return [<>] /// CHECK-DAG: Return [<>] /// CHECK-DAG: Return [<>] - /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInnerWithReturn(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondSameValueButNotAllInnerWithReturn(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 @@ -341,7 +341,7 @@ public class Main { // Same as testDoubleDiamondDifferentValue, but branches return. - /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValueWithReturn(boolean, boolean) code_flow_simplifier (before) + /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValueWithReturn(boolean, boolean) control_flow_simplifier (before) /// CHECK-DAG: <> IntConstant 10 /// CHECK-DAG: <> IntConstant 20 /// CHECK-DAG: <> IntConstant 30 @@ -349,7 +349,7 @@ public class Main { /// CHECK-DAG: Return [<>] /// CHECK-DAG: Return [<>] - /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValueWithReturn(boolean, boolean) code_flow_simplifier (after) + /// CHECK-START: int Main.$noinline$testDoubleDiamondDifferentValueWithReturn(boolean, boolean) control_flow_simplifier (after) /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> ParameterValue /// CHECK-DAG: <> IntConstant 10 -- cgit v1.2.3-59-g8ed1b