From 89df0fda1767d9f91cb9bfaf6d0e839bbc04c76f Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Mon, 21 Sep 2020 16:52:07 -0700 Subject: [PATCH] [UnifyLoopExits] Pin tests with -unify-loop-exits to legacy PM The pass is not used in tree, so no reason to port it. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D88058 --- llvm/test/Transforms/StructurizeCFG/workarounds/needs-fr-ule.ll | 2 +- .../Transforms/StructurizeCFG/workarounds/needs-unified-loop-exits.ll | 2 +- llvm/test/Transforms/UnifyLoopExits/basic.ll | 2 +- llvm/test/Transforms/UnifyLoopExits/nested.ll | 2 +- llvm/test/Transforms/UnifyLoopExits/restore-ssa.ll | 2 +- llvm/test/Transforms/UnifyLoopExits/switch.ll | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/test/Transforms/StructurizeCFG/workarounds/needs-fr-ule.ll b/llvm/test/Transforms/StructurizeCFG/workarounds/needs-fr-ule.ll index 61dccd2..219a356 100644 --- a/llvm/test/Transforms/StructurizeCFG/workarounds/needs-fr-ule.ll +++ b/llvm/test/Transforms/StructurizeCFG/workarounds/needs-fr-ule.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -fix-irreducible -unify-loop-exits -structurizecfg -S | FileCheck %s +; RUN: opt < %s -fix-irreducible -unify-loop-exits -structurizecfg -enable-new-pm=0 -S | FileCheck %s define void @irreducible_mountain_bug(i1 %Pred0, i1 %Pred1, i1 %Pred2, i1 %Pred3, i1 %Pred4, i1 %Pred5, i1 %Pred6, i1 %Pred7, i1 %Pred8, i1 %Pred9, i1 %Pred10, i1 %Pred11, i1 %Pred12, i1 %Pred13) { ; CHECK-LABEL: @irreducible_mountain_bug( ; CHECK-NEXT: entry: diff --git a/llvm/test/Transforms/StructurizeCFG/workarounds/needs-unified-loop-exits.ll b/llvm/test/Transforms/StructurizeCFG/workarounds/needs-unified-loop-exits.ll index 3256550..c4bdf87 100644 --- a/llvm/test/Transforms/StructurizeCFG/workarounds/needs-unified-loop-exits.ll +++ b/llvm/test/Transforms/StructurizeCFG/workarounds/needs-unified-loop-exits.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -unify-loop-exits -structurizecfg -S | FileCheck %s +; RUN: opt < %s -unify-loop-exits -structurizecfg -enable-new-pm=0 -S | FileCheck %s ; The structurizer uses an RPO traversal over a region, along with a ; manual hack that is meant to sort ensure that blocks within a loop diff --git a/llvm/test/Transforms/UnifyLoopExits/basic.ll b/llvm/test/Transforms/UnifyLoopExits/basic.ll index 11fa32c..596abfa 100644 --- a/llvm/test/Transforms/UnifyLoopExits/basic.ll +++ b/llvm/test/Transforms/UnifyLoopExits/basic.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -unify-loop-exits -S | FileCheck %s +; RUN: opt < %s -unify-loop-exits -enable-new-pm=0 -S | FileCheck %s define void @loop_1(i1 %PredEntry, i1 %PredB, i1 %PredC, i1 %PredD) { ; CHECK-LABEL: @loop_1( diff --git a/llvm/test/Transforms/UnifyLoopExits/nested.ll b/llvm/test/Transforms/UnifyLoopExits/nested.ll index e5d04dc..beb258c 100644 --- a/llvm/test/Transforms/UnifyLoopExits/nested.ll +++ b/llvm/test/Transforms/UnifyLoopExits/nested.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -unify-loop-exits -S | FileCheck %s +; RUN: opt < %s -unify-loop-exits -enable-new-pm=0 -S | FileCheck %s define void @nested(i1 %PredB3, i1 %PredB4, i1 %PredA4, i1 %PredA3, i32 %X, i32 %Y, i32 %Z) { ; CHECK-LABEL: @nested( diff --git a/llvm/test/Transforms/UnifyLoopExits/restore-ssa.ll b/llvm/test/Transforms/UnifyLoopExits/restore-ssa.ll index 2db170c..cc975d6 100644 --- a/llvm/test/Transforms/UnifyLoopExits/restore-ssa.ll +++ b/llvm/test/Transforms/UnifyLoopExits/restore-ssa.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -unify-loop-exits -S | FileCheck %s +; RUN: opt < %s -unify-loop-exits -enable-new-pm=0 -S | FileCheck %s ; Loop consists of A and B: ; - A is the header diff --git a/llvm/test/Transforms/UnifyLoopExits/switch.ll b/llvm/test/Transforms/UnifyLoopExits/switch.ll index 618e54d..8d21165 100644 --- a/llvm/test/Transforms/UnifyLoopExits/switch.ll +++ b/llvm/test/Transforms/UnifyLoopExits/switch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -unify-loop-exits -S | FileCheck %s +; RUN: opt < %s -unify-loop-exits -enable-new-pm=0 -S | FileCheck %s define void @loop_1(i32 %Value, i1 %PredEntry, i1 %PredD) { ; CHECK-LABEL: @loop_1( -- 2.7.4