Skip to content

Commit 2e14900

Browse files
committed
[test][NewPM] Use -passes=loop-vectorize instead of -loop-vectorize
Update a bunch of loop-vectorize regression tests to use the new PM syntax (opt -passes=loop-vectorize) instead of the deprecated legacy PM syntax (opt -loop-vectorize).
1 parent 8854d12 commit 2e14900

File tree

96 files changed

+102
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+102
-104
lines changed

llvm/test/Transforms/LoopVectorize/2016-07-27-loop-vec.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -S
1+
; RUN: opt < %s -passes=loop-vectorize -S
22

33
define void @foo() local_unnamed_addr {
44
entry:

llvm/test/Transforms/LoopVectorize/alias-set-with-uncomputable-bounds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-vectorize -force-vector-width=2 -S %s | FileCheck %s
1+
; RUN: opt -passes=loop-vectorize -force-vector-width=2 -S %s | FileCheck %s
22

33
; Tests with alias sets that contain points with uncomputable bounds because
44
; they include %offset.1, which is loaded in each loop iteration.

llvm/test/Transforms/LoopVectorize/align.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S | FileCheck %s
1+
; RUN: opt < %s -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S | FileCheck %s
22

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

llvm/test/Transforms/LoopVectorize/assume.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -force-vector-width=2 -force-vector-interleave=2 -S | FileCheck %s
1+
; RUN: opt < %s -passes=loop-vectorize -force-vector-width=2 -force-vector-interleave=2 -S | FileCheck %s
22

33
define void @test1(float* noalias nocapture %a, float* noalias nocapture readonly %b) {
44
; CHECK-LABEL: @test1(

llvm/test/Transforms/LoopVectorize/control-flow.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -force-vector-width=4 -S -pass-remarks-missed='loop-vectorize' 2>&1 | FileCheck %s
1+
; RUN: opt < %s -passes=loop-vectorize -force-vector-width=4 -S -pass-remarks-missed='loop-vectorize' 2>&1 | FileCheck %s
22

33
; C/C++ code for control flow test
44
; int test(int *A, int Length) {

llvm/test/Transforms/LoopVectorize/dead_instructions.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -force-vector-width=2 -force-vector-interleave=2 -loop-vectorize -S | FileCheck %s
1+
; RUN: opt < %s -force-vector-width=2 -force-vector-interleave=2 -passes=loop-vectorize -S | FileCheck %s
22

33
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
44

llvm/test/Transforms/LoopVectorize/debugloc.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=2 | FileCheck %s
1+
; RUN: opt -S < %s -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=2 | FileCheck %s
22

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

llvm/test/Transforms/LoopVectorize/demanded-bits-of-pointer-instruction.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -S | FileCheck %s
1+
; RUN: opt < %s -passes=loop-vectorize -S | FileCheck %s
22

33
; getDemandedBits() is called on the pointer-typed GEP instruction here.
44
; Only make sure we do not crash.

llvm/test/Transforms/LoopVectorize/diag-missing-instr-debug-loc.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-vectorize -pass-remarks-analysis=loop-vectorize < %s 2>&1 | FileCheck %s
1+
; RUN: opt -passes=loop-vectorize -pass-remarks-analysis=loop-vectorize < %s 2>&1 | FileCheck %s
22

33
; 1 extern int map[];
44
; 2 extern int out[];

llvm/test/Transforms/LoopVectorize/disable_nonforced.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s
1+
; RUN: opt -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s
22
;
33
; Check that the disable_nonforced loop property is honored by the
44
; loop vectorizer.

0 commit comments

Comments
 (0)