Skip to content

Commit 2eb40aa

Browse files
committed
[SimpleLoopUnswitch] Use loop-mssa in more tests (NFC)
We had a lot of -verify-memoryssa tests that did not actually use MemorySSA, because they were not using the loop-mssa adaptor.
1 parent 284d4e0 commit 2eb40aa

31 files changed

+32
-36
lines changed

llvm/test/Analysis/MemorySSA/loop-unswitch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -passes=simple-loop-unswitch -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
1+
; RUN: opt -S -passes="loop-mssa(simple-loop-unswitch)" -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Analysis/MemorySSA/pr40037.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; REQUIRES: asserts
2-
; RUN: opt -S -passes=simple-loop-unswitch -verify-memoryssa < %s | FileCheck %s
2+
; RUN: opt -S -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa < %s | FileCheck %s
33

44
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
55
target triple = "s390x-ibm-linux"

llvm/test/Analysis/MemorySSA/pr40749_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -passes=licm,simple-loop-unswitch -verify-memoryssa %s | FileCheck %s
1+
; RUN: opt -S -passes="loop-mssa(licm,simple-loop-unswitch)" -verify-memoryssa %s | FileCheck %s
22
; REQUIRES: asserts
33
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
44
target triple = "s390x-ibm-linux"

llvm/test/Analysis/MemorySSA/pr43641.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
1+
; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
; CHECK-LABEL: @c

llvm/test/Analysis/MemorySSA/pr46574.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes='loop-mssa(loop-instsimplify,loop-simplifycfg,licm,simple-loop-unswitch)' -enable-nontrivial-unswitch %s -disable-output
1+
; RUN: opt -passes='loop-mssa(loop-instsimplify,loop-simplifycfg,licm,simple-loop-unswitch)' -enable-nontrivial-unswitch -verify-memoryssa %s -disable-output
22
; REQUIRES: asserts
33

44
%0 = type { i24, i32, i32, i8 }

llvm/test/Analysis/MemorySSA/simple_loop_unswitch_nontrivial.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
1+
; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Transforms/SimpleLoopUnswitch/2006-06-13-SingleEntryPHI.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22

33
%struct.BLEND_MAP = type { i16, i16, i16, i32, ptr }
44
%struct.BLEND_MAP_ENTRY = type { float, i8, { [5 x float], [4 x i8] } }

llvm/test/Transforms/SimpleLoopUnswitch/2006-06-27-DeadSwitchCase.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22

33
define void @init_caller_save() {
44
entry:

llvm/test/Transforms/SimpleLoopUnswitch/2007-05-09-Unreachable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; PR1333
2-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
2+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
33

44
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
55
target triple = "i686-pc-linux-gnu"

llvm/test/Transforms/SimpleLoopUnswitch/2007-05-09-tl.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22
; PR1333
33

44
define void @pp_cxx_expression() {

llvm/test/Transforms/SimpleLoopUnswitch/2007-07-12-ExitDomInfo.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes='loop(simple-loop-unswitch),instcombine' -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch),instcombine' -verify-memoryssa -disable-output
22

33
@str3 = external constant [3 x i8] ; <ptr> [#uses=1]
44

llvm/test/Transforms/SimpleLoopUnswitch/2007-07-13-DomInfo.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22

33
define i32 @main(i32 %argc, ptr %argv) {
44
entry:

llvm/test/Transforms/SimpleLoopUnswitch/2007-07-18-DomInfo.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22
; PR1559
33

44
target triple = "i686-pc-linux-gnu"

llvm/test/Transforms/SimpleLoopUnswitch/2007-08-01-LCSSA.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2-
; RUN: opt < %s -S -passes='loop(simple-loop-unswitch),instcombine' -verify-memoryssa | FileCheck %s
2+
; RUN: opt < %s -S -passes='loop-mssa(simple-loop-unswitch),instcombine' -verify-memoryssa | FileCheck %s
33

44
@.str9 = external constant [1 x i8]
55

llvm/test/Transforms/SimpleLoopUnswitch/2008-06-02-DomInfo.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes='loop(simple-loop-unswitch),instcombine,gvn' -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch),instcombine,gvn' -verify-memoryssa -disable-output
22
; PR2372
33
target triple = "i386-pc-linux-gnu"
44

llvm/test/Transforms/SimpleLoopUnswitch/2010-11-18-LCSSA.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa
22
; PR8622
33
@g_38 = external global i32, align 4
44

llvm/test/Transforms/SimpleLoopUnswitch/2011-06-02-CritSwitch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=simple-loop-unswitch -verify-memoryssa -disable-output < %s
1+
; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output < %s
22
; PR10031
33

44
define i32 @test(i32 %command) {

llvm/test/Transforms/SimpleLoopUnswitch/2011-09-26-EHCrash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes='sroa,simple-loop-unswitch' -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes='sroa,loop-mssa(simple-loop-unswitch)' -verify-memoryssa -disable-output
22
; PR11016
33
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
44
target triple = "x86_64-apple-macosx10.7.2"

llvm/test/Transforms/SimpleLoopUnswitch/2012-04-02-IndirectBr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -S -passes=simple-loop-unswitch -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s
1+
; RUN: opt < %s -S -passes="loop-mssa(simple-loop-unswitch)" -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s
22
; PR12343: -passes=simple-loop-unswitch crash on indirect branch
33

44
; CHECK: %0 = icmp eq i64 undef, 0

llvm/test/Transforms/SimpleLoopUnswitch/2012-05-20-Phi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -disable-output
22
; PR12887
33
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -S | FileCheck %s
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -S | FileCheck %s
22

33
; In cases where two address spaces do not have the same size pointer, the
44
; input for the addrspacecast should not be used as a substitute for itself

llvm/test/Transforms/SimpleLoopUnswitch/LIV-loop-condtion.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -S 2>&1 | FileCheck %s
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -S 2>&1 | FileCheck %s
22

33
; This is to test trivial loop unswitch only happens when trivial condition
44
; itself is an LIV loop condition (not partial LIV which could occur in and/or).

llvm/test/Transforms/SimpleLoopUnswitch/cleanuppad.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -passes=simple-loop-unswitch -verify-memoryssa < %s | FileCheck %s
1+
; RUN: opt -S -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa < %s | FileCheck %s
22
target triple = "x86_64-pc-win32"
33

44
define void @f(i32 %doit, i1 %x, i1 %y) personality ptr @__CxxFrameHandler3 {

llvm/test/Transforms/SimpleLoopUnswitch/copy-metadata.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -S | FileCheck %s
1+
; RUN: opt < %s -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -S | FileCheck %s
22

33
; This test checks if unswitched condition preserve make.implicit metadata.
44
define i32 @test(i1 %cond) {

llvm/test/Transforms/SimpleLoopUnswitch/crash.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -passes=simple-loop-unswitch -verify-memoryssa -disable-output
2-
; RUN: opt < %s -passes='simple-loop-unswitch<nontrivial>' -verify-memoryssa -disable-output
1+
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch)' -verify-memoryssa -disable-output
2+
; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch<nontrivial>)' -verify-memoryssa -disable-output
33

44
define void @test1(ptr %S2) {
55
entry:

llvm/test/Transforms/SimpleLoopUnswitch/exponential-behavior.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=simple-loop-unswitch -verify-memoryssa -S < %s | FileCheck %s
1+
; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -verify-memoryssa -S < %s | FileCheck %s
22

33
define void @f(i32 %n, ptr %ptr) {
44
; CHECK-LABEL: @f(

llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-cost.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
; Specifically exercise the cost modeling for non-trivial loop unswitching.
22
;
33
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
4-
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S < %s | FileCheck %s
5-
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' -unswitch-threshold=5 -verify-memoryssa -S < %s | FileCheck %s
4+
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -unswitch-threshold=5 -S -verify-memoryssa < %s | FileCheck %s
65

76
declare void @a()
87
declare void @b()

llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-freeze.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt -freeze-loop-unswitch-cond -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
3-
; RUN: opt -freeze-loop-unswitch-cond -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
4-
; RUN: opt -freeze-loop-unswitch-cond -passes='simple-loop-unswitch<nontrivial>' -verify-memoryssa -S < %s | FileCheck %s
3+
; RUN: opt -freeze-loop-unswitch-cond -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S -verify-memoryssa < %s | FileCheck %s
54

65
declare i32 @a()
76
declare i32 @b()

llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-skip-selects-in-guards.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
3-
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
4-
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' -verify-memoryssa -verify-loop-info -S < %s | FileCheck %s
3+
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S -verify-memoryssa < %s | FileCheck %s
54

65
declare ptr @pluto()
76
declare void @llvm.experimental.guard(i1, ...)

llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; RUN: opt -passes='loop(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
2-
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S < %s | FileCheck %s
3-
; RUN: opt -passes='simple-loop-unswitch<nontrivial>' -verify-memoryssa -S < %s | FileCheck %s
2+
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>),verify<loops>' -S -verify-memoryssa < %s | FileCheck %s
43

54
declare i32 @a()
65
declare i32 @b()

llvm/test/Transforms/SimpleLoopUnswitch/preserve-analyses.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -passes=simple-loop-unswitch -verify-loop-info -verify-dom-info -verify-memoryssa -disable-output < %s
1+
; RUN: opt -passes="loop-mssa(simple-loop-unswitch)" -verify-loop-info -verify-dom-info -verify-memoryssa -disable-output < %s
22

33
; Loop unswitch should be able to unswitch these loops and
44
; preserve LCSSA and LoopSimplify forms.

0 commit comments

Comments
 (0)