From 1f93c900ba4a0c9285dabc9837b2e18304f654b2 Mon Sep 17 00:00:00 2001 From: Anjali Pal Date: Sat, 9 Nov 2024 21:13:34 -0800 Subject: [PATCH] snapshots --- ...ggcc__rvsdg__rvsdg2svg__add_rvsdg_svg.snap | 11 ++-- ...__rvsdg__rvsdg2svg__diamond_rvsdg_svg.snap | 22 +++---- ...rvsdg__rvsdg2svg__fib_shape_rvsdg_svg.snap | 62 +++++++++---------- ...__branch_hoisting-optimize-sequential.snap | 1 + .../files__branch_hoisting-optimize.snap | 1 + ..._constant_folding-optimize-sequential.snap | 1 + ...conditional_constant_folding-optimize.snap | 1 + ...ead_loop_deletion-optimize-sequential.snap | 1 + .../files__dead_loop_deletion-optimize.snap | 1 + .../files__if_true-optimize-sequential.snap | 1 + tests/snapshots/files__if_true-optimize.snap | 1 + ...based_code_motion-optimize-sequential.snap | 1 + ...iles__loop_based_code_motion-optimize.snap | 1 + ...riant_code_motion-optimize-sequential.snap | 1 + ...__loop_invariant_code_motion-optimize.snap | 1 + ...les__loop_peeling-optimize-sequential.snap | 1 + .../files__loop_peeling-optimize.snap | 1 + ...trength_reduction-optimize-sequential.snap | 1 + ...les__loop_strength_reduction-optimize.snap | 1 + ...eduction_modified-optimize-sequential.snap | 6 +- ..._strength_reduction_modified-optimize.snap | 6 +- ...iles__loop_unroll-optimize-sequential.snap | 1 + .../files__loop_unroll-optimize.snap | 1 + ...ple_loop_unswitch-optimize-sequential.snap | 1 + .../files__simple_loop_unswitch-optimize.snap | 25 +++----- 25 files changed, 83 insertions(+), 68 deletions(-) diff --git a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__add_rvsdg_svg.snap b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__add_rvsdg_svg.snap index b26f0fa07..65e0e4402 100644 --- a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__add_rvsdg_svg.snap +++ b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__add_rvsdg_svg.snap @@ -21,35 +21,35 @@ expression: svg @@ -226,4 +226,3 @@ expression: svg - diff --git a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__diamond_rvsdg_svg.snap b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__diamond_rvsdg_svg.snap index eb36afea9..24c239ad1 100644 --- a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__diamond_rvsdg_svg.snap +++ b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__diamond_rvsdg_svg.snap @@ -21,35 +21,35 @@ expression: svg @@ -132,21 +132,21 @@ expression: svg @@ -272,21 +272,21 @@ expression: svg diff --git a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__fib_shape_rvsdg_svg.snap b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__fib_shape_rvsdg_svg.snap index 2b13b3c5c..5b1685649 100644 --- a/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__fib_shape_rvsdg_svg.snap +++ b/src/rvsdg/snapshots/eggcc__rvsdg__rvsdg2svg__fib_shape_rvsdg_svg.snap @@ -21,49 +21,49 @@ expression: svg @@ -158,84 +158,84 @@ expression: svg @@ -318,49 +318,49 @@ expression: svg @@ -542,35 +542,35 @@ expression: svg diff --git a/tests/snapshots/files__branch_hoisting-optimize-sequential.snap b/tests/snapshots/files__branch_hoisting-optimize-sequential.snap index d34b6a306..30c6e7554 100644 --- a/tests/snapshots/files__branch_hoisting-optimize-sequential.snap +++ b/tests/snapshots/files__branch_hoisting-optimize-sequential.snap @@ -61,4 +61,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; print v4_; + ret; } diff --git a/tests/snapshots/files__branch_hoisting-optimize.snap b/tests/snapshots/files__branch_hoisting-optimize.snap index d34b6a306..30c6e7554 100644 --- a/tests/snapshots/files__branch_hoisting-optimize.snap +++ b/tests/snapshots/files__branch_hoisting-optimize.snap @@ -61,4 +61,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; print v4_; + ret; } diff --git a/tests/snapshots/files__conditional_constant_folding-optimize-sequential.snap b/tests/snapshots/files__conditional_constant_folding-optimize-sequential.snap index 8239f8869..f3f4b5bbf 100644 --- a/tests/snapshots/files__conditional_constant_folding-optimize-sequential.snap +++ b/tests/snapshots/files__conditional_constant_folding-optimize-sequential.snap @@ -7,4 +7,5 @@ expression: visualization.result .b1_: c2_: int = const 20; print c2_; + ret; } diff --git a/tests/snapshots/files__conditional_constant_folding-optimize.snap b/tests/snapshots/files__conditional_constant_folding-optimize.snap index 8239f8869..f3f4b5bbf 100644 --- a/tests/snapshots/files__conditional_constant_folding-optimize.snap +++ b/tests/snapshots/files__conditional_constant_folding-optimize.snap @@ -7,4 +7,5 @@ expression: visualization.result .b1_: c2_: int = const 20; print c2_; + ret; } diff --git a/tests/snapshots/files__dead_loop_deletion-optimize-sequential.snap b/tests/snapshots/files__dead_loop_deletion-optimize-sequential.snap index 2e37721c0..a4352d2d8 100644 --- a/tests/snapshots/files__dead_loop_deletion-optimize-sequential.snap +++ b/tests/snapshots/files__dead_loop_deletion-optimize-sequential.snap @@ -39,4 +39,5 @@ expression: visualization.result v8_: int = id v14_; v9_: int = id v15_; print c1_; + ret; } diff --git a/tests/snapshots/files__dead_loop_deletion-optimize.snap b/tests/snapshots/files__dead_loop_deletion-optimize.snap index 2e37721c0..a4352d2d8 100644 --- a/tests/snapshots/files__dead_loop_deletion-optimize.snap +++ b/tests/snapshots/files__dead_loop_deletion-optimize.snap @@ -39,4 +39,5 @@ expression: visualization.result v8_: int = id v14_; v9_: int = id v15_; print c1_; + ret; } diff --git a/tests/snapshots/files__if_true-optimize-sequential.snap b/tests/snapshots/files__if_true-optimize-sequential.snap index ae1cbd809..e51060e70 100644 --- a/tests/snapshots/files__if_true-optimize-sequential.snap +++ b/tests/snapshots/files__if_true-optimize-sequential.snap @@ -9,4 +9,5 @@ expression: visualization.result v3_: int = sub v0 c2_; print v0; print v3_; + ret; } diff --git a/tests/snapshots/files__if_true-optimize.snap b/tests/snapshots/files__if_true-optimize.snap index ae1cbd809..e51060e70 100644 --- a/tests/snapshots/files__if_true-optimize.snap +++ b/tests/snapshots/files__if_true-optimize.snap @@ -9,4 +9,5 @@ expression: visualization.result v3_: int = sub v0 c2_; print v0; print v3_; + ret; } diff --git a/tests/snapshots/files__loop_based_code_motion-optimize-sequential.snap b/tests/snapshots/files__loop_based_code_motion-optimize-sequential.snap index a33212d97..5a731ddb2 100644 --- a/tests/snapshots/files__loop_based_code_motion-optimize-sequential.snap +++ b/tests/snapshots/files__loop_based_code_motion-optimize-sequential.snap @@ -28,4 +28,5 @@ expression: visualization.result c13_: int = const 5; v14_: int = mul c13_ v3_; print v14_; + ret; } diff --git a/tests/snapshots/files__loop_based_code_motion-optimize.snap b/tests/snapshots/files__loop_based_code_motion-optimize.snap index a33212d97..5a731ddb2 100644 --- a/tests/snapshots/files__loop_based_code_motion-optimize.snap +++ b/tests/snapshots/files__loop_based_code_motion-optimize.snap @@ -28,4 +28,5 @@ expression: visualization.result c13_: int = const 5; v14_: int = mul c13_ v3_; print v14_; + ret; } diff --git a/tests/snapshots/files__loop_invariant_code_motion-optimize-sequential.snap b/tests/snapshots/files__loop_invariant_code_motion-optimize-sequential.snap index f924563b9..74d102ee5 100644 --- a/tests/snapshots/files__loop_invariant_code_motion-optimize-sequential.snap +++ b/tests/snapshots/files__loop_invariant_code_motion-optimize-sequential.snap @@ -60,4 +60,5 @@ expression: visualization.result v8_: int = id v15_; v9_: int = id v16_; v10_: int = id v17_; + ret; } diff --git a/tests/snapshots/files__loop_invariant_code_motion-optimize.snap b/tests/snapshots/files__loop_invariant_code_motion-optimize.snap index f924563b9..74d102ee5 100644 --- a/tests/snapshots/files__loop_invariant_code_motion-optimize.snap +++ b/tests/snapshots/files__loop_invariant_code_motion-optimize.snap @@ -60,4 +60,5 @@ expression: visualization.result v8_: int = id v15_; v9_: int = id v16_; v10_: int = id v17_; + ret; } diff --git a/tests/snapshots/files__loop_peeling-optimize-sequential.snap b/tests/snapshots/files__loop_peeling-optimize-sequential.snap index 85ec2395e..553314f00 100644 --- a/tests/snapshots/files__loop_peeling-optimize-sequential.snap +++ b/tests/snapshots/files__loop_peeling-optimize-sequential.snap @@ -32,4 +32,5 @@ expression: visualization.result v4_: int = id v9_; v5_: int = id v10_; print v3_; + ret; } diff --git a/tests/snapshots/files__loop_peeling-optimize.snap b/tests/snapshots/files__loop_peeling-optimize.snap index 85ec2395e..553314f00 100644 --- a/tests/snapshots/files__loop_peeling-optimize.snap +++ b/tests/snapshots/files__loop_peeling-optimize.snap @@ -32,4 +32,5 @@ expression: visualization.result v4_: int = id v9_; v5_: int = id v10_; print v3_; + ret; } diff --git a/tests/snapshots/files__loop_strength_reduction-optimize-sequential.snap b/tests/snapshots/files__loop_strength_reduction-optimize-sequential.snap index 5e5a53e7a..056fbd474 100644 --- a/tests/snapshots/files__loop_strength_reduction-optimize-sequential.snap +++ b/tests/snapshots/files__loop_strength_reduction-optimize-sequential.snap @@ -44,4 +44,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; v9_: int = id v16_; + ret; } diff --git a/tests/snapshots/files__loop_strength_reduction-optimize.snap b/tests/snapshots/files__loop_strength_reduction-optimize.snap index 5e5a53e7a..056fbd474 100644 --- a/tests/snapshots/files__loop_strength_reduction-optimize.snap +++ b/tests/snapshots/files__loop_strength_reduction-optimize.snap @@ -44,4 +44,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; v9_: int = id v16_; + ret; } diff --git a/tests/snapshots/files__loop_strength_reduction_modified-optimize-sequential.snap b/tests/snapshots/files__loop_strength_reduction_modified-optimize-sequential.snap index 4bd296ec1..39926bed5 100644 --- a/tests/snapshots/files__loop_strength_reduction_modified-optimize-sequential.snap +++ b/tests/snapshots/files__loop_strength_reduction_modified-optimize-sequential.snap @@ -66,6 +66,9 @@ expression: visualization.result v12_: int = id v21_; v13_: int = id v22_; br v15_ .b14_ .b39_; +.b39_: + ret; + jmp .b40_; .b37_: v16_: int = id v26_; v17_: int = id v8_; @@ -90,5 +93,6 @@ expression: visualization.result v11_: int = id v20_; v12_: int = id v21_; v13_: int = id v22_; -.b39_: + ret; +.b40_: } diff --git a/tests/snapshots/files__loop_strength_reduction_modified-optimize.snap b/tests/snapshots/files__loop_strength_reduction_modified-optimize.snap index 4bd296ec1..39926bed5 100644 --- a/tests/snapshots/files__loop_strength_reduction_modified-optimize.snap +++ b/tests/snapshots/files__loop_strength_reduction_modified-optimize.snap @@ -66,6 +66,9 @@ expression: visualization.result v12_: int = id v21_; v13_: int = id v22_; br v15_ .b14_ .b39_; +.b39_: + ret; + jmp .b40_; .b37_: v16_: int = id v26_; v17_: int = id v8_; @@ -90,5 +93,6 @@ expression: visualization.result v11_: int = id v20_; v12_: int = id v21_; v13_: int = id v22_; -.b39_: + ret; +.b40_: } diff --git a/tests/snapshots/files__loop_unroll-optimize-sequential.snap b/tests/snapshots/files__loop_unroll-optimize-sequential.snap index 06574812d..900e56603 100644 --- a/tests/snapshots/files__loop_unroll-optimize-sequential.snap +++ b/tests/snapshots/files__loop_unroll-optimize-sequential.snap @@ -25,4 +25,5 @@ expression: visualization.result v3_: int = id v7_; v4_: int = id v8_; print v3_; + ret; } diff --git a/tests/snapshots/files__loop_unroll-optimize.snap b/tests/snapshots/files__loop_unroll-optimize.snap index 06574812d..900e56603 100644 --- a/tests/snapshots/files__loop_unroll-optimize.snap +++ b/tests/snapshots/files__loop_unroll-optimize.snap @@ -25,4 +25,5 @@ expression: visualization.result v3_: int = id v7_; v4_: int = id v8_; print v3_; + ret; } diff --git a/tests/snapshots/files__simple_loop_unswitch-optimize-sequential.snap b/tests/snapshots/files__simple_loop_unswitch-optimize-sequential.snap index 09807d1cd..6add478ad 100644 --- a/tests/snapshots/files__simple_loop_unswitch-optimize-sequential.snap +++ b/tests/snapshots/files__simple_loop_unswitch-optimize-sequential.snap @@ -57,4 +57,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; print v4_; + ret; } diff --git a/tests/snapshots/files__simple_loop_unswitch-optimize.snap b/tests/snapshots/files__simple_loop_unswitch-optimize.snap index 09807d1cd..3e77272e0 100644 --- a/tests/snapshots/files__simple_loop_unswitch-optimize.snap +++ b/tests/snapshots/files__simple_loop_unswitch-optimize.snap @@ -23,24 +23,12 @@ expression: visualization.result .b16_: print v5_; v18_: bool = lt v7_ v8_; - v19_: int = id v4_; - v20_: int = id v5_; - v21_: int = id v6_; - v22_: int = id v7_; - v23_: int = id v8_; - br v18_ .b24_ .b25_; -.b24_: - c26_: int = const 2; - v19_: int = id c26_; - v20_: int = id v5_; - v21_: int = id v6_; - v22_: int = id v7_; - v23_: int = id v8_; -.b25_: - v27_: int = add v19_ v6_; - v28_: int = add v5_ v6_; - v11_: int = id v27_; - v12_: int = id v28_; + c19_: int = const 2; + v20_: int = select v18_ c19_ v4_; + v21_: int = add v20_ v6_; + v22_: int = add v5_ v6_; + v11_: int = id v21_; + v12_: int = id v22_; v13_: int = id v6_; v14_: int = id v7_; v15_: int = id v8_; @@ -57,4 +45,5 @@ expression: visualization.result v7_: int = id v14_; v8_: int = id v15_; print v4_; + ret; }