diff --git a/llvm/test/Other/debugcounter-predicateinfo.ll b/llvm/test/Other/debugcounter-predicateinfo.ll --- a/llvm/test/Other/debugcounter-predicateinfo.ll +++ b/llvm/test/Other/debugcounter-predicateinfo.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; REQUIRES: asserts -; RUN: opt -debug-counter=predicateinfo-rename-skip=1,predicateinfo-rename-count=1 -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -debug-counter=predicateinfo-rename-skip=1,predicateinfo-rename-count=1 -passes=print-predicateinfo < %s 2>&1 | FileCheck %s ;; Test that, with debug counters on, we don't rename the first info, only the second define fastcc void @barney() { ; CHECK-LABEL: @barney( diff --git a/llvm/test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll b/llvm/test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll --- a/llvm/test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll +++ b/llvm/test/Transforms/ConstantMerge/2002-09-23-CPR-Update.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -constmerge > /dev/null +; RUN: opt < %s -passes=constmerge > /dev/null @foo.upgrd.1 = internal constant { i32 } { i32 7 } ; <{ i32 }*> [#uses=1] @bar = internal constant { i32 } { i32 7 } ; <{ i32 }*> [#uses=1] diff --git a/llvm/test/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll b/llvm/test/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll --- a/llvm/test/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll +++ b/llvm/test/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -constmerge < %s | FileCheck %s +; RUN: opt -S -passes=constmerge < %s | FileCheck %s ; CHECK: @foo = constant i32 6 ; CHECK: @bar = constant i32 6 diff --git a/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll b/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll --- a/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll +++ b/llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll @@ -1,4 +1,4 @@ -; RUN: opt -constmerge -S < %s | FileCheck %s +; RUN: opt -passes=constmerge -S < %s | FileCheck %s ; PR8978 declare i32 @zed(%struct.foobar*, %struct.foobar*) diff --git a/llvm/test/Transforms/ConstantMerge/align.ll b/llvm/test/Transforms/ConstantMerge/align.ll --- a/llvm/test/Transforms/ConstantMerge/align.ll +++ b/llvm/test/Transforms/ConstantMerge/align.ll @@ -1,4 +1,4 @@ -; RUN: opt -constmerge -S < %s | FileCheck %s +; RUN: opt -passes=constmerge -S < %s | FileCheck %s 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" diff --git a/llvm/test/Transforms/ConstantMerge/dont-merge.ll b/llvm/test/Transforms/ConstantMerge/dont-merge.ll --- a/llvm/test/Transforms/ConstantMerge/dont-merge.ll +++ b/llvm/test/Transforms/ConstantMerge/dont-merge.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -constmerge -S | FileCheck %s +; RUN: opt < %s -passes=constmerge -S | FileCheck %s ; Don't merge constants with specified sections. diff --git a/llvm/test/Transforms/ConstantMerge/merge-dbg.ll b/llvm/test/Transforms/ConstantMerge/merge-dbg.ll --- a/llvm/test/Transforms/ConstantMerge/merge-dbg.ll +++ b/llvm/test/Transforms/ConstantMerge/merge-dbg.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -constmerge -S | FileCheck %s +; RUN: opt < %s -passes=constmerge -S | FileCheck %s ; CHECK: = constant i32 1, !dbg [[A:![0-9]+]], !dbg [[B:![0-9]+]] @a = internal constant i32 1, !dbg !0 diff --git a/llvm/test/Transforms/ConstantMerge/unnamed-addr.ll b/llvm/test/Transforms/ConstantMerge/unnamed-addr.ll --- a/llvm/test/Transforms/ConstantMerge/unnamed-addr.ll +++ b/llvm/test/Transforms/ConstantMerge/unnamed-addr.ll @@ -1,4 +1,4 @@ -; RUN: opt -constmerge -S < %s | FileCheck %s +; RUN: opt -passes=constmerge -S < %s | FileCheck %s ; Test which corresponding x and y are merged and that unnamed_addr ; is correctly set. diff --git a/llvm/test/Transforms/ConstraintElimination/add-nuw.ll b/llvm/test/Transforms/ConstraintElimination/add-nuw.ll --- a/llvm/test/Transforms/ConstraintElimination/add-nuw.ll +++ b/llvm/test/Transforms/ConstraintElimination/add-nuw.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define void @test.not.uge.ult(i8 %start, i8 %low, i8 %high) { ; CHECK-LABEL: @test.not.uge.ult( diff --git a/llvm/test/Transforms/ConstraintElimination/add.ll b/llvm/test/Transforms/ConstraintElimination/add.ll --- a/llvm/test/Transforms/ConstraintElimination/add.ll +++ b/llvm/test/Transforms/ConstraintElimination/add.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define void @test.not.uge.ult(i8 %start, i8 %low, i8 %high) { ; CHECK-LABEL: @test.not.uge.ult( diff --git a/llvm/test/Transforms/ConstraintElimination/and.ll b/llvm/test/Transforms/ConstraintElimination/and.ll --- a/llvm/test/Transforms/ConstraintElimination/and.ll +++ b/llvm/test/Transforms/ConstraintElimination/and.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/assumes.ll b/llvm/test/Transforms/ConstraintElimination/assumes.ll --- a/llvm/test/Transforms/ConstraintElimination/assumes.ll +++ b/llvm/test/Transforms/ConstraintElimination/assumes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @llvm.assume(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/decompose-with-temporary-indices.ll b/llvm/test/Transforms/ConstraintElimination/decompose-with-temporary-indices.ll --- a/llvm/test/Transforms/ConstraintElimination/decompose-with-temporary-indices.ll +++ b/llvm/test/Transforms/ConstraintElimination/decompose-with-temporary-indices.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/dom.ll b/llvm/test/Transforms/ConstraintElimination/dom.ll --- a/llvm/test/Transforms/ConstraintElimination/dom.ll +++ b/llvm/test/Transforms/ConstraintElimination/dom.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s ; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; Test cases where both the true and false successors reach the same block, diff --git a/llvm/test/Transforms/ConstraintElimination/empty-constraint.ll b/llvm/test/Transforms/ConstraintElimination/empty-constraint.ll --- a/llvm/test/Transforms/ConstraintElimination/empty-constraint.ll +++ b/llvm/test/Transforms/ConstraintElimination/empty-constraint.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; Make sure constraints where all variable coefficients are 0 are handled ; properly. diff --git a/llvm/test/Transforms/ConstraintElimination/eq.ll b/llvm/test/Transforms/ConstraintElimination/eq.ll --- a/llvm/test/Transforms/ConstraintElimination/eq.ll +++ b/llvm/test/Transforms/ConstraintElimination/eq.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @test_eq_1(i8 %a, i8 %b) { ; CHECK-LABEL: @test_eq_1( diff --git a/llvm/test/Transforms/ConstraintElimination/gep-arithmetic.ll b/llvm/test/Transforms/ConstraintElimination/gep-arithmetic.ll --- a/llvm/test/Transforms/ConstraintElimination/gep-arithmetic.ll +++ b/llvm/test/Transforms/ConstraintElimination/gep-arithmetic.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @llvm.assume(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/geps-inbounds-precondition.ll b/llvm/test/Transforms/ConstraintElimination/geps-inbounds-precondition.ll --- a/llvm/test/Transforms/ConstraintElimination/geps-inbounds-precondition.ll +++ b/llvm/test/Transforms/ConstraintElimination/geps-inbounds-precondition.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; Tests for using inbounds information from GEPs. diff --git a/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-arrays.ll b/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-arrays.ll --- a/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-arrays.ll +++ b/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-arrays.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define void @pointer.to.array.test.ult.true.due.to.first.dimension([10 x i8]* %start, i8* %high) { ; CHECK-LABEL: @pointer.to.array.test.ult.true.due.to.first.dimension( diff --git a/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-structs.ll b/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-structs.ll --- a/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-structs.ll +++ b/llvm/test/Transforms/ConstraintElimination/geps-pointers-to-structs.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s %struct.1 = type { i32, i64, i8 } diff --git a/llvm/test/Transforms/ConstraintElimination/geps-precondition-overflow-check.ll b/llvm/test/Transforms/ConstraintElimination/geps-precondition-overflow-check.ll --- a/llvm/test/Transforms/ConstraintElimination/geps-precondition-overflow-check.ll +++ b/llvm/test/Transforms/ConstraintElimination/geps-precondition-overflow-check.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; Tests for cases with explicit checks that %ptr + x >= %ptr. The information can ; be used to determine that certain GEPs do not overflow. diff --git a/llvm/test/Transforms/ConstraintElimination/geps.ll b/llvm/test/Transforms/ConstraintElimination/geps.ll --- a/llvm/test/Transforms/ConstraintElimination/geps.ll +++ b/llvm/test/Transforms/ConstraintElimination/geps.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i32 @test.ult(i32* readonly %src, i32* readnone %min, i32* readnone %max) { ; CHECK-LABEL: @test.ult( diff --git a/llvm/test/Transforms/ConstraintElimination/i128.ll b/llvm/test/Transforms/ConstraintElimination/i128.ll --- a/llvm/test/Transforms/ConstraintElimination/i128.ll +++ b/llvm/test/Transforms/ConstraintElimination/i128.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/large-system-growth.ll b/llvm/test/Transforms/ConstraintElimination/large-system-growth.ll --- a/llvm/test/Transforms/ConstraintElimination/large-system-growth.ll +++ b/llvm/test/Transforms/ConstraintElimination/large-system-growth.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; The system for the function below grows quite large. Check to make sure ; we can handle that scenario. diff --git a/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-base.ll b/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-base.ll --- a/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-base.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-base.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-pointer-cmps.ll b/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-pointer-cmps.ll --- a/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-pointer-cmps.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops-bottom-tested-pointer-cmps.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) define void @checks_in_loops_removable(i8* %ptr, i8* %lower, i8* %upper, i8 %n) { diff --git a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-base.ll b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-base.ll --- a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-base.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-base.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-cmps.ll b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-cmps.ll --- a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-cmps.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-cmps.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-iv.ll b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-iv.ll --- a/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-iv.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops-header-tested-pointer-iv.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/loops.ll b/llvm/test/Transforms/ConstraintElimination/loops.ll --- a/llvm/test/Transforms/ConstraintElimination/loops.ll +++ b/llvm/test/Transforms/ConstraintElimination/loops.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/mixed-signed-unsigned-predicates.ll b/llvm/test/Transforms/ConstraintElimination/mixed-signed-unsigned-predicates.ll --- a/llvm/test/Transforms/ConstraintElimination/mixed-signed-unsigned-predicates.ll +++ b/llvm/test/Transforms/ConstraintElimination/mixed-signed-unsigned-predicates.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @test_add_nuw(i8 %start, i8 %low, i8 %high) { ; CHECK-LABEL: @test_add_nuw( diff --git a/llvm/test/Transforms/ConstraintElimination/mixed.ll b/llvm/test/Transforms/ConstraintElimination/mixed.ll --- a/llvm/test/Transforms/ConstraintElimination/mixed.ll +++ b/llvm/test/Transforms/ConstraintElimination/mixed.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s ; Make sure we do not incorrectly add variables to the system. diff --git a/llvm/test/Transforms/ConstraintElimination/ne.ll b/llvm/test/Transforms/ConstraintElimination/ne.ll --- a/llvm/test/Transforms/ConstraintElimination/ne.ll +++ b/llvm/test/Transforms/ConstraintElimination/ne.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @test_eq_ne_0(i8 %a, i8 %b) { ; CHECK-LABEL: @test_eq_ne_0( diff --git a/llvm/test/Transforms/ConstraintElimination/or.ll b/llvm/test/Transforms/ConstraintElimination/or.ll --- a/llvm/test/Transforms/ConstraintElimination/or.ll +++ b/llvm/test/Transforms/ConstraintElimination/or.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/pointercast.ll b/llvm/test/Transforms/ConstraintElimination/pointercast.ll --- a/llvm/test/Transforms/ConstraintElimination/pointercast.ll +++ b/llvm/test/Transforms/ConstraintElimination/pointercast.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @bitcast_and_cmp(i32* readonly %src, i32* readnone %min, i32* readnone %max) { ; CHECK-LABEL: @bitcast_and_cmp( diff --git a/llvm/test/Transforms/ConstraintElimination/sge.ll b/llvm/test/Transforms/ConstraintElimination/sge.ll --- a/llvm/test/Transforms/ConstraintElimination/sge.ll +++ b/llvm/test/Transforms/ConstraintElimination/sge.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/sub-nuw.ll b/llvm/test/Transforms/ConstraintElimination/sub-nuw.ll --- a/llvm/test/Transforms/ConstraintElimination/sub-nuw.ll +++ b/llvm/test/Transforms/ConstraintElimination/sub-nuw.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define void @test.not.uge.ult(i8 %start, i8 %low, i8 %high) { ; CHECK-LABEL: @test.not.uge.ult( diff --git a/llvm/test/Transforms/ConstraintElimination/sub.ll b/llvm/test/Transforms/ConstraintElimination/sub.ll --- a/llvm/test/Transforms/ConstraintElimination/sub.ll +++ b/llvm/test/Transforms/ConstraintElimination/sub.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define void @test.not.uge.ult(i8 %start, i8 %low, i8 %high) { ; CHECK-LABEL: @test.not.uge.ult( diff --git a/llvm/test/Transforms/ConstraintElimination/uge.ll b/llvm/test/Transforms/ConstraintElimination/uge.ll --- a/llvm/test/Transforms/ConstraintElimination/uge.ll +++ b/llvm/test/Transforms/ConstraintElimination/uge.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/ugt-ule.ll b/llvm/test/Transforms/ConstraintElimination/ugt-ule.ll --- a/llvm/test/Transforms/ConstraintElimination/ugt-ule.ll +++ b/llvm/test/Transforms/ConstraintElimination/ugt-ule.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/ule.ll b/llvm/test/Transforms/ConstraintElimination/ule.ll --- a/llvm/test/Transforms/ConstraintElimination/ule.ll +++ b/llvm/test/Transforms/ConstraintElimination/ule.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/vector-compares.ll b/llvm/test/Transforms/ConstraintElimination/vector-compares.ll --- a/llvm/test/Transforms/ConstraintElimination/vector-compares.ll +++ b/llvm/test/Transforms/ConstraintElimination/vector-compares.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/ConstraintElimination/wrapping-math.ll b/llvm/test/Transforms/ConstraintElimination/wrapping-math.ll --- a/llvm/test/Transforms/ConstraintElimination/wrapping-math.ll +++ b/llvm/test/Transforms/ConstraintElimination/wrapping-math.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @wrapping_add_unknown_1(i8 %a) { ; CHECK-LABEL: @wrapping_add_unknown_1( diff --git a/llvm/test/Transforms/ConstraintElimination/zext.ll b/llvm/test/Transforms/ConstraintElimination/zext.ll --- a/llvm/test/Transforms/ConstraintElimination/zext.ll +++ b/llvm/test/Transforms/ConstraintElimination/zext.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -constraint-elimination -S %s | FileCheck %s +; RUN: opt -passes=constraint-elimination -S %s | FileCheck %s define i1 @uge_zext(i8 %x, i16 %y) { ; CHECK-LABEL: @uge_zext( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/2010-09-02-Trunc.ll b/llvm/test/Transforms/CorrelatedValuePropagation/2010-09-02-Trunc.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/2010-09-02-Trunc.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/2010-09-02-Trunc.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -correlated-propagation | FileCheck %s +; RUN: opt -S < %s -passes=correlated-propagation | FileCheck %s ; CHECK-LABEL: @test( define i16 @test(i32 %a, i1 %b) { diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/abs.ll b/llvm/test/Transforms/CorrelatedValuePropagation/abs.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/abs.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/abs.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s declare void @llvm.assume(i1) declare i8 @llvm.abs(i8, i1) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/add.ll b/llvm/test/Transforms/CorrelatedValuePropagation/add.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/add.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/add.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; CHECK-LABEL: @test0( define void @test0(i32 %a) { diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/alloca.ll b/llvm/test/Transforms/CorrelatedValuePropagation/alloca.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/alloca.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/alloca.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -correlated-propagation -debug-only=lazy-value-info <%s 2>&1 | FileCheck %s +; RUN: opt -S -passes=correlated-propagation -debug-only=lazy-value-info <%s 2>&1 | FileCheck %s ; REQUIRES: asserts ; ; Shortcut in Correlated Value Propagation ensures not to take Lazy Value Info diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/and.ll b/llvm/test/Transforms/CorrelatedValuePropagation/and.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/and.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/and.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define i32 @test(i32 %a) { ; CHECK-LABEL: @test( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/ashr.ll b/llvm/test/Transforms/CorrelatedValuePropagation/ashr.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/ashr.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/ashr.ll @@ -1,8 +1,8 @@ -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; Check that debug locations are preserved. For more info see: ; https://llvm.org/docs/SourceLevelDebugging.html#fixing-errors -; RUN: opt < %s -enable-debugify -correlated-propagation -S 2>&1 | \ +; RUN: opt < %s -enable-debugify -passes=correlated-propagation -S 2>&1 | \ ; RUN: FileCheck %s -check-prefix=DEBUG ; DEBUG: CheckModuleDebugify: PASS diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/basic.ll b/llvm/test/Transforms/CorrelatedValuePropagation/basic.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/basic.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/basic.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; PR2581 define i32 @test1(i1 %C) { diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/conflict.ll b/llvm/test/Transforms/CorrelatedValuePropagation/conflict.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/conflict.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/conflict.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S < %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S < %s | FileCheck %s ; Checks that we don't crash on conflicting facts about a value ; (i.e. unreachable code) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll b/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -correlated-propagation +; RUN: opt < %s -passes=correlated-propagation ; PR8161 define void @test1() nounwind ssp { diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/deopt.ll b/llvm/test/Transforms/CorrelatedValuePropagation/deopt.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/deopt.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/deopt.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S < %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S < %s | FileCheck %s declare void @use() declare void @use_ptr(i8*) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/guards.ll b/llvm/test/Transforms/CorrelatedValuePropagation/guards.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/guards.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/guards.ll @@ -1,4 +1,4 @@ -; RUN: opt -correlated-propagation -S < %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S < %s | FileCheck %s declare void @llvm.experimental.guard(i1,...) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll b/llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S %s | FileCheck %s ; RUN: opt -passes=correlated-propagation -S %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll b/llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/merge-range-and-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -correlated-propagation %s | FileCheck %s +; RUN: opt -S -passes=correlated-propagation %s | FileCheck %s ; Test case for PR44949. diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/min-max.ll b/llvm/test/Transforms/CorrelatedValuePropagation/min-max.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/min-max.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/min-max.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s declare void @llvm.assume(i1) declare i8 @llvm.umin(i8, i8) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/minmaxabs.ll b/llvm/test/Transforms/CorrelatedValuePropagation/minmaxabs.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/minmaxabs.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/minmaxabs.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -correlated-propagation < %s | FileCheck %s +; RUN: opt -S -passes=correlated-propagation < %s | FileCheck %s declare i32 @llvm.umin.i32(i32, i32) declare i32 @llvm.umax.i32(i32, i32) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/mul.ll b/llvm/test/Transforms/CorrelatedValuePropagation/mul.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/mul.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/mul.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define i8 @test0(i8 %a) { ; CHECK-LABEL: @test0( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/non-null.ll b/llvm/test/Transforms/CorrelatedValuePropagation/non-null.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/non-null.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/non-null.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define void @test1(i8* %ptr) { ; CHECK-LABEL: @test1( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/overflow_predicate.ll b/llvm/test/Transforms/CorrelatedValuePropagation/overflow_predicate.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/overflow_predicate.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/overflow_predicate.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -correlated-propagation < %s | FileCheck %s +; RUN: opt -S -passes=correlated-propagation < %s | FileCheck %s declare void @llvm.trap() declare {i8, i1} @llvm.uadd.with.overflow(i8, i8) diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/overflows.ll b/llvm/test/Transforms/CorrelatedValuePropagation/overflows.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/overflows.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/overflows.ll @@ -1,9 +1,9 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -correlated-propagation < %s | FileCheck %s +; RUN: opt -S -passes=correlated-propagation < %s | FileCheck %s ; Check that debug locations are preserved. For more info see: ; https://llvm.org/docs/SourceLevelDebugging.html#fixing-errors -; RUN: opt < %s -enable-debugify -correlated-propagation -S 2>&1 | \ +; RUN: opt < %s -enable-debugify -passes=correlated-propagation -S 2>&1 | \ ; RUN: FileCheck %s -check-prefix=DEBUG ; DEBUG: CheckModuleDebugify: PASS diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll b/llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/phi-common-val.ll @@ -1,6 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s -; RUN: opt < %s -passes="correlated-propagation" -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define i8* @simplify_phi_common_value_op0(i8* %ptr, i32* %b) { ; CHECK-LABEL: @simplify_phi_common_value_op0( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/pointer.ll b/llvm/test/Transforms/CorrelatedValuePropagation/pointer.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/pointer.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/pointer.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S -o - %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S -o - %s | FileCheck %s ; Testcase that checks that we don't end in a neverending recursion resulting in ; a segmentation fault. The checks below verify that nothing is changed. diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/pr35807.ll b/llvm/test/Transforms/CorrelatedValuePropagation/pr35807.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/pr35807.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/pr35807.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S %s | FileCheck %s target triple = "x86_64-apple-darwin17.4.0" diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/profmd.ll b/llvm/test/Transforms/CorrelatedValuePropagation/profmd.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/profmd.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/profmd.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; Removed several cases from switch. define i32 @switch1(i32 %s) { diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/range.ll b/llvm/test/Transforms/CorrelatedValuePropagation/range.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/range.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/range.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -correlated-propagation -S < %s | FileCheck %s +; RUN: opt -passes=correlated-propagation -S < %s | FileCheck %s declare i32 @foo() diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll b/llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/sdiv.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/select.ll b/llvm/test/Transforms/CorrelatedValuePropagation/select.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/select.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/select.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define i8 @simple(i1) { ; CHECK-LABEL: @simple( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/sext.ll b/llvm/test/Transforms/CorrelatedValuePropagation/sext.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/sext.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/sext.ll @@ -1,9 +1,9 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; Check that debug locations are preserved. For more info see: ; https://llvm.org/docs/SourceLevelDebugging.html#fixing-errors -; RUN: opt < %s -enable-debugify -correlated-propagation -S 2>&1 | \ +; RUN: opt < %s -enable-debugify -passes=correlated-propagation -S 2>&1 | \ ; RUN: FileCheck %s -check-prefix=DEBUG ; DEBUG: CheckModuleDebugify: PASS diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/shl.ll b/llvm/test/Transforms/CorrelatedValuePropagation/shl.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/shl.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/shl.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define i8 @test0(i8 %a, i8 %b) { ; CHECK-LABEL: @test0( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/srem.ll b/llvm/test/Transforms/CorrelatedValuePropagation/srem.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/srem.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/srem.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv7m-arm-none-eabi" diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/sub.ll b/llvm/test/Transforms/CorrelatedValuePropagation/sub.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/sub.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/sub.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define void @test0(i32 %a) { ; CHECK-LABEL: @test0( diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/udiv.ll b/llvm/test/Transforms/CorrelatedValuePropagation/udiv.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/udiv.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/udiv.ll @@ -1,8 +1,8 @@ -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s ; Check that debug locations are preserved. For more info see: ; https://llvm.org/docs/SourceLevelDebugging.html#fixing-errors -; RUN: opt < %s -enable-debugify -correlated-propagation -S 2>&1 | \ +; RUN: opt < %s -enable-debugify -passes=correlated-propagation -S 2>&1 | \ ; RUN: FileCheck %s -check-prefix=DEBUG ; DEBUG: CheckModuleDebugify: PASS diff --git a/llvm/test/Transforms/CorrelatedValuePropagation/urem.ll b/llvm/test/Transforms/CorrelatedValuePropagation/urem.ll --- a/llvm/test/Transforms/CorrelatedValuePropagation/urem.ll +++ b/llvm/test/Transforms/CorrelatedValuePropagation/urem.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -correlated-propagation -S | FileCheck %s +; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s define void @test_nop(i32 %n) { ; CHECK-LABEL: @test_nop( diff --git a/llvm/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll b/llvm/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll --- a/llvm/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll +++ b/llvm/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce +; RUN: opt < %s -passes=globaldce ; define internal void @func() { ret void diff --git a/llvm/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll b/llvm/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll --- a/llvm/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll +++ b/llvm/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce +; RUN: opt < %s -passes=globaldce ; @X = global void ()* @func ; [#uses=0] diff --git a/llvm/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll b/llvm/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll --- a/llvm/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll +++ b/llvm/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll @@ -1,7 +1,7 @@ ; Make sure that functions are removed successfully if they are referred to by ; a global that is dead. Make sure any globals they refer to die as well. -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; CHECK-NOT: foo ;; Unused, kills %foo diff --git a/llvm/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll b/llvm/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll --- a/llvm/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll +++ b/llvm/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll @@ -1,7 +1,7 @@ ; This testcase tests that a worklist is being used, and that globals can be ; removed if they are the subject of a constexpr and ConstantPointerRef -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; CHECK-NOT: global diff --git a/llvm/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll b/llvm/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll --- a/llvm/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll +++ b/llvm/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce +; RUN: opt < %s -passes=globaldce ;; Should die when function %foo is killed @foo.upgrd.1 = internal global i32 7 ; [#uses=3] diff --git a/llvm/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll b/llvm/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll --- a/llvm/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll +++ b/llvm/test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll @@ -1,5 +1,5 @@ ; distilled from 255.vortex -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; CHECK-NOT: testfunc diff --git a/llvm/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll b/llvm/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll --- a/llvm/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll +++ b/llvm/test/Transforms/GlobalDCE/2003-10-09-PreserveWeakGlobals.ll @@ -1,6 +1,6 @@ ; Weak variables should be preserved by global DCE! -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; CHECK: @A @A = weak global i32 54 diff --git a/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll b/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll --- a/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll +++ b/llvm/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S > %t +; RUN: opt < %s -passes=globaldce -S > %t ; RUN: FileCheck %s < %t ; RUN: FileCheck --check-prefix=DEAD %s < %t diff --git a/llvm/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll b/llvm/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll --- a/llvm/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll +++ b/llvm/test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce +; RUN: opt < %s -passes=globaldce @A = internal alias void (), void ()* @F define internal void @F() { ret void } diff --git a/llvm/test/Transforms/GlobalDCE/call-with-ptrtoint.ll b/llvm/test/Transforms/GlobalDCE/call-with-ptrtoint.ll --- a/llvm/test/Transforms/GlobalDCE/call-with-ptrtoint.ll +++ b/llvm/test/Transforms/GlobalDCE/call-with-ptrtoint.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S +; RUN: opt < %s -passes=globaldce -S target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/comdats.ll b/llvm/test/Transforms/GlobalDCE/comdats.ll --- a/llvm/test/Transforms/GlobalDCE/comdats.ll +++ b/llvm/test/Transforms/GlobalDCE/comdats.ll @@ -1,6 +1,6 @@ ; Test the behavior of GlobalDCE in conjunction with comdats. ; -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; First test checks that if one function in a comdat group is used, both other ; functions and other globals even if unused will be preserved. diff --git a/llvm/test/Transforms/GlobalDCE/externally_available.ll b/llvm/test/Transforms/GlobalDCE/externally_available.ll --- a/llvm/test/Transforms/GlobalDCE/externally_available.ll +++ b/llvm/test/Transforms/GlobalDCE/externally_available.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; test_global should not be emitted to the .s file. ; CHECK-NOT: @test_global = diff --git a/llvm/test/Transforms/GlobalDCE/global-ifunc.ll b/llvm/test/Transforms/GlobalDCE/global-ifunc.ll --- a/llvm/test/Transforms/GlobalDCE/global-ifunc.ll +++ b/llvm/test/Transforms/GlobalDCE/global-ifunc.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globaldce < %s | FileCheck %s +; RUN: opt -S -passes=globaldce < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalDCE/global_ctors.ll b/llvm/test/Transforms/GlobalDCE/global_ctors.ll --- a/llvm/test/Transforms/GlobalDCE/global_ctors.ll +++ b/llvm/test/Transforms/GlobalDCE/global_ctors.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globaldce < %s | FileCheck %s +; RUN: opt -S -passes=globaldce < %s | FileCheck %s ; Test that the presence of debug intrinsics isn't affecting GlobalDCE. ; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_notremovable, i8* null }] diff --git a/llvm/test/Transforms/GlobalDCE/indirectbr.ll b/llvm/test/Transforms/GlobalDCE/indirectbr.ll --- a/llvm/test/Transforms/GlobalDCE/indirectbr.ll +++ b/llvm/test/Transforms/GlobalDCE/indirectbr.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globaldce < %s | FileCheck %s +; RUN: opt -S -passes=globaldce < %s | FileCheck %s @L = internal unnamed_addr constant [3 x i8*] [i8* blockaddress(@test1, %L1), i8* blockaddress(@test1, %L2), i8* null], align 16 diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-base-call.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-base-call.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-base-call.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-base-call.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-base-pointer-call.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-base-pointer-call.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-base-pointer-call.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-base-pointer-call.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-call.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-call.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-call.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-call.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-pointer-call.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-pointer-call.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-pointer-call.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-derived-pointer-call.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-novfe.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-novfe.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-novfe.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-novfe.ll @@ -1,6 +1,6 @@ ; Tests that VFE is not performed when the Virtual Function Elim metadata set ; to 0. This is the same as virtual-functions.ll otherwise. -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers-bad.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-relative-pointers.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-post-lto.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-post-lto.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-post-lto.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-post-lto.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; structs A, B and C have vcall_visibility of public, linkage-unit and ; translation-unit respectively. This test is run after LTO linking (the diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-pre-lto.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-pre-lto.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-pre-lto.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions-visibility-pre-lto.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; structs A, B and C have vcall_visibility of public, linkage-unit and ; translation-unit respectively. This test is run before LTO linking occurs diff --git a/llvm/test/Transforms/GlobalDCE/virtual-functions.ll b/llvm/test/Transforms/GlobalDCE/virtual-functions.ll --- a/llvm/test/Transforms/GlobalDCE/virtual-functions.ll +++ b/llvm/test/Transforms/GlobalDCE/virtual-functions.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/GlobalDCE/vtable-rtti.ll b/llvm/test/Transforms/GlobalDCE/vtable-rtti.ll --- a/llvm/test/Transforms/GlobalDCE/vtable-rtti.ll +++ b/llvm/test/Transforms/GlobalDCE/vtable-rtti.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globaldce -S | FileCheck %s +; RUN: opt < %s -passes=globaldce -S | FileCheck %s ; We currently only use llvm.type.checked.load for virtual function pointers, ; not any other part of the vtable, so we can't remove the RTTI pointer even if diff --git a/llvm/test/Transforms/GlobalOpt/2005-06-15-LocalizeConstExprCrash.ll b/llvm/test/Transforms/GlobalOpt/2005-06-15-LocalizeConstExprCrash.ll --- a/llvm/test/Transforms/GlobalOpt/2005-06-15-LocalizeConstExprCrash.ll +++ b/llvm/test/Transforms/GlobalOpt/2005-06-15-LocalizeConstExprCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output ; PR579 @g_40507551 = internal global i16 31038 ; [#uses=1] diff --git a/llvm/test/Transforms/GlobalOpt/2005-09-27-Crash.ll b/llvm/test/Transforms/GlobalOpt/2005-09-27-Crash.ll --- a/llvm/test/Transforms/GlobalOpt/2005-09-27-Crash.ll +++ b/llvm/test/Transforms/GlobalOpt/2005-09-27-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output %RPyString = type { i32, %arraytype.Char } %arraytype.Char = type { i32, [0 x i8] } %arraytype.Signed = type { i32, [0 x i32] } diff --git a/llvm/test/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll b/llvm/test/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll --- a/llvm/test/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll +++ b/llvm/test/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output ; PR820 target datalayout = "e-p:32:32" target triple = "i686-pc-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll b/llvm/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll --- a/llvm/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll +++ b/llvm/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output %struct._list = type { i32*, %struct._list* } %struct._play = type { i32, i32*, %struct._list*, %struct._play* } diff --git a/llvm/test/Transforms/GlobalOpt/2007-04-05-Crash.ll b/llvm/test/Transforms/GlobalOpt/2007-04-05-Crash.ll --- a/llvm/test/Transforms/GlobalOpt/2007-04-05-Crash.ll +++ b/llvm/test/Transforms/GlobalOpt/2007-04-05-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32" target triple = "thumb-apple-darwin8" diff --git a/llvm/test/Transforms/GlobalOpt/2007-05-13-Crash.ll b/llvm/test/Transforms/GlobalOpt/2007-05-13-Crash.ll --- a/llvm/test/Transforms/GlobalOpt/2007-05-13-Crash.ll +++ b/llvm/test/Transforms/GlobalOpt/2007-05-13-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output 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" target triple = "i686-apple-darwin8" diff --git a/llvm/test/Transforms/GlobalOpt/2007-06-04-PackedStruct.ll b/llvm/test/Transforms/GlobalOpt/2007-06-04-PackedStruct.ll --- a/llvm/test/Transforms/GlobalOpt/2007-06-04-PackedStruct.ll +++ b/llvm/test/Transforms/GlobalOpt/2007-06-04-PackedStruct.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output ; PR1491 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" diff --git a/llvm/test/Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll b/llvm/test/Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll --- a/llvm/test/Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll +++ b/llvm/test/Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output 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-f128:64:128" target triple = "powerpc-unknown-linux-gnu" %struct.empty0 = type { } diff --git a/llvm/test/Transforms/GlobalOpt/2008-01-03-Crash.ll b/llvm/test/Transforms/GlobalOpt/2008-01-03-Crash.ll --- a/llvm/test/Transforms/GlobalOpt/2008-01-03-Crash.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-01-03-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt | llvm-dis +; RUN: opt < %s -passes=globalopt | llvm-dis ; PR1896 @indirect1 = internal global void (i32)* null ; [#uses=2] diff --git a/llvm/test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll b/llvm/test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll --- a/llvm/test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-01-13-OutOfRangeSROA.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; The 'X' indices could be larger than 31. Do not SROA the outer ; indices of this array. diff --git a/llvm/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll b/llvm/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll --- a/llvm/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-01-29-VolatileGlobal.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: load volatile @t0.1441 = internal global double 0x3FD5555555555555, align 8 ; [#uses=1] diff --git a/llvm/test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll b/llvm/test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll --- a/llvm/test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-04-26-SROA-Global-Align.ll @@ -2,7 +2,7 @@ ; alignments. Elements 0 and 2 must be 16-byte aligned, and element ; 1 must be at least 8 byte aligned (but could be more). -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: @G.0 = internal unnamed_addr global {{.*}}align 16 ; CHECK: @G.1 = internal unnamed_addr global {{.*}}align 8 ; CHECK: @G.2 = internal unnamed_addr global {{.*}}align 16 diff --git a/llvm/test/Transforms/GlobalOpt/2008-07-17-addrspace.ll b/llvm/test/Transforms/GlobalOpt/2008-07-17-addrspace.ll --- a/llvm/test/Transforms/GlobalOpt/2008-07-17-addrspace.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-07-17-addrspace.ll @@ -2,7 +2,7 @@ ; values. This used to crash, because globalopt forgot to put the new var in the ; same address space as the old one. -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Check that the new global values still have their address space ; CHECK: addrspace(1) global diff --git a/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash-2.ll b/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash-2.ll --- a/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash-2.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt | llvm-dis +; RUN: opt < %s -passes=globalopt | llvm-dis 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-f80:128:128" target triple = "i386-apple-darwin7" %struct.foo = type { i32, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll b/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll --- a/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll +++ b/llvm/test/Transforms/GlobalOpt/2008-12-16-HeapSRACrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt | llvm-dis +; RUN: opt < %s -passes=globalopt | llvm-dis 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-f80:128:128" target triple = "i386-apple-darwin7" %struct.foo = type { i32, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/2009-01-13-phi-user.ll b/llvm/test/Transforms/GlobalOpt/2009-01-13-phi-user.ll --- a/llvm/test/Transforms/GlobalOpt/2009-01-13-phi-user.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-01-13-phi-user.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: phi{{.*}}@head ; PR3321 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" diff --git a/llvm/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll b/llvm/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll --- a/llvm/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s define internal void @f() { ; CHECK-NOT: @f( diff --git a/llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll b/llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll --- a/llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-03-05-dbg.ll @@ -1,5 +1,5 @@ ; REQUIRES: asserts -; RUN: opt < %s -globalopt -stats -disable-output 2>&1 | FileCheck %s +; RUN: opt < %s -passes=globalopt -stats -disable-output 2>&1 | FileCheck %s ; CHECK: 1 globalopt - Number of global vars shrunk to booleans source_filename = "test/Transforms/GlobalOpt/2009-03-05-dbg.ll" diff --git a/llvm/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll b/llvm/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll --- a/llvm/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @0 = global i32 0 ; CHECK-DAG: @0 = internal global i32 0 diff --git a/llvm/test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll b/llvm/test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll --- a/llvm/test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-03-07-PromotePtrToBool.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s 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-f80:128:128" target triple = "i386-apple-darwin7" diff --git a/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll b/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll --- a/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s 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" target triple = "x86_64-apple-darwin10.0" diff --git a/llvm/test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll b/llvm/test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll --- a/llvm/test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-11-16-MallocSingleStoreToGlobalVar.ll @@ -2,7 +2,7 @@ ; GlobalOpt was treating a non-optimizable array malloc as a non-array malloc ; and optimizing the global object that the malloc was stored to as a single ; element global. The global object @TOP in this test should not be optimized. -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s 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" target triple = "x86_64-apple-darwin10.0" diff --git a/llvm/test/Transforms/GlobalOpt/2010-02-25-MallocPromote.ll b/llvm/test/Transforms/GlobalOpt/2010-02-25-MallocPromote.ll --- a/llvm/test/Transforms/GlobalOpt/2010-02-25-MallocPromote.ll +++ b/llvm/test/Transforms/GlobalOpt/2010-02-25-MallocPromote.ll @@ -1,5 +1,5 @@ ; PR6422 -; RUN: opt -globalopt -S < %s +; RUN: opt -passes=globalopt -S < %s 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/2010-02-26-MallocSROA.ll b/llvm/test/Transforms/GlobalOpt/2010-02-26-MallocSROA.ll --- a/llvm/test/Transforms/GlobalOpt/2010-02-26-MallocSROA.ll +++ b/llvm/test/Transforms/GlobalOpt/2010-02-26-MallocSROA.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s +; RUN: opt -passes=globalopt -S < %s ; PR6435 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll b/llvm/test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll --- a/llvm/test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll +++ b/llvm/test/Transforms/GlobalOpt/2010-10-19-WeakOdr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; PR8389: Globals with weak_odr linkage type must not be modified diff --git a/llvm/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll b/llvm/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll --- a/llvm/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll +++ b/llvm/test/Transforms/GlobalOpt/2011-04-09-EmptyGlobalCtors.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -disable-output +; RUN: opt < %s -passes=globalopt -disable-output %0 = type { i32, void ()*, i8* } @llvm.global_ctors = appending global [0 x %0] zeroinitializer diff --git a/llvm/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll b/llvm/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll --- a/llvm/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll +++ b/llvm/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Check that the mere presence of a blockaddress doesn't prevent -globalopt ; from promoting @f to fastcc. diff --git a/llvm/test/Transforms/GlobalOpt/2021-08-02-CastStoreOnceP2I.ll b/llvm/test/Transforms/GlobalOpt/2021-08-02-CastStoreOnceP2I.ll --- a/llvm/test/Transforms/GlobalOpt/2021-08-02-CastStoreOnceP2I.ll +++ b/llvm/test/Transforms/GlobalOpt/2021-08-02-CastStoreOnceP2I.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; This tests the assignemnt of non-pointer to global address diff --git a/llvm/test/Transforms/GlobalOpt/2021-08-03-StoreOnceLoadMultiCasts.ll b/llvm/test/Transforms/GlobalOpt/2021-08-03-StoreOnceLoadMultiCasts.ll --- a/llvm/test/Transforms/GlobalOpt/2021-08-03-StoreOnceLoadMultiCasts.ll +++ b/llvm/test/Transforms/GlobalOpt/2021-08-03-StoreOnceLoadMultiCasts.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; RUN: opt -passes=globalopt -S < %s | FileCheck %s @g = internal global i32* null, align 8 diff --git a/llvm/test/Transforms/GlobalOpt/GSROA-section.ll b/llvm/test/Transforms/GlobalOpt/GSROA-section.ll --- a/llvm/test/Transforms/GlobalOpt/GSROA-section.ll +++ b/llvm/test/Transforms/GlobalOpt/GSROA-section.ll @@ -1,7 +1,7 @@ ; This test lets globalopt split the global struct and array into different ; values. The pass needs to preserve section attribute. -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Check that the new global values still have their section assignment. ; CHECK: @struct ; CHECK: section ".foo" diff --git a/llvm/test/Transforms/GlobalOpt/MallocSROA-section-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/MallocSROA-section-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/MallocSROA-section-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/MallocSROA-section-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; CHECK: @Y ; CHECK: section ".foo" diff --git a/llvm/test/Transforms/GlobalOpt/MallocSROA-section.ll b/llvm/test/Transforms/GlobalOpt/MallocSROA-section.ll --- a/llvm/test/Transforms/GlobalOpt/MallocSROA-section.ll +++ b/llvm/test/Transforms/GlobalOpt/MallocSROA-section.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; CHECK: @Y = {{.*}} section ".foo" %struct.xyz = type { double, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/PowerPC/coldcc_coldsites.ll b/llvm/test/Transforms/GlobalOpt/PowerPC/coldcc_coldsites.ll --- a/llvm/test/Transforms/GlobalOpt/PowerPC/coldcc_coldsites.ll +++ b/llvm/test/Transforms/GlobalOpt/PowerPC/coldcc_coldsites.ll @@ -1,5 +1,5 @@ -; RUN: opt -globalopt -mtriple=powerpc64le-unknown-linux-gnu -ppc-enable-coldcc -S < %s | FileCheck %s -check-prefix=COLDCC -; RUN: opt -globalopt -S < %s | FileCheck %s -check-prefix=CHECK +; RUN: opt -passes=globalopt -mtriple=powerpc64le-unknown-linux-gnu -ppc-enable-coldcc -S < %s | FileCheck %s -check-prefix=COLDCC +; RUN: opt -passes=globalopt -S < %s | FileCheck %s -check-prefix=CHECK define signext i32 @caller(i32 signext %a, i32 signext %b, i32 signext %lim, i32 signext %i) local_unnamed_addr #0 !prof !30 { entry: diff --git a/llvm/test/Transforms/GlobalOpt/SROA-section.ll b/llvm/test/Transforms/GlobalOpt/SROA-section.ll --- a/llvm/test/Transforms/GlobalOpt/SROA-section.ll +++ b/llvm/test/Transforms/GlobalOpt/SROA-section.ll @@ -1,5 +1,5 @@ ; Verify that section assignment is copied during SROA -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: @G.0 ; CHECK: section ".foo" ; CHECK: @G.1 diff --git a/llvm/test/Transforms/GlobalOpt/alias-resolve.ll b/llvm/test/Transforms/GlobalOpt/alias-resolve.ll --- a/llvm/test/Transforms/GlobalOpt/alias-resolve.ll +++ b/llvm/test/Transforms/GlobalOpt/alias-resolve.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @foo1 = alias void (), void ()* @foo2 ; CHECK: @foo1 = alias void (), void ()* @bar2 diff --git a/llvm/test/Transforms/GlobalOpt/alias-used-address-space.ll b/llvm/test/Transforms/GlobalOpt/alias-used-address-space.ll --- a/llvm/test/Transforms/GlobalOpt/alias-used-address-space.ll +++ b/llvm/test/Transforms/GlobalOpt/alias-used-address-space.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s target datalayout = "p:32:32:32-p1:16:16:16" diff --git a/llvm/test/Transforms/GlobalOpt/alias-used-section.ll b/llvm/test/Transforms/GlobalOpt/alias-used-section.ll --- a/llvm/test/Transforms/GlobalOpt/alias-used-section.ll +++ b/llvm/test/Transforms/GlobalOpt/alias-used-section.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s @_Z17in_custom_section = internal global i8 42, section "CUSTOM" @in_custom_section = internal dllexport alias i8, i8* @_Z17in_custom_section diff --git a/llvm/test/Transforms/GlobalOpt/alias-used.ll b/llvm/test/Transforms/GlobalOpt/alias-used.ll --- a/llvm/test/Transforms/GlobalOpt/alias-used.ll +++ b/llvm/test/Transforms/GlobalOpt/alias-used.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @c = global i8 42 diff --git a/llvm/test/Transforms/GlobalOpt/amdgcn-ctor-alloca.ll b/llvm/test/Transforms/GlobalOpt/amdgcn-ctor-alloca.ll --- a/llvm/test/Transforms/GlobalOpt/amdgcn-ctor-alloca.ll +++ b/llvm/test/Transforms/GlobalOpt/amdgcn-ctor-alloca.ll @@ -1,4 +1,4 @@ -; RUN: opt -data-layout=A5 -globalopt %s -S -o - | FileCheck %s +; RUN: opt -data-layout=A5 -passes=globalopt %s -S -o - | FileCheck %s ; CHECK-NOT: @g @g = internal addrspace(1) global i32* zeroinitializer diff --git a/llvm/test/Transforms/GlobalOpt/array-elem-refs.ll b/llvm/test/Transforms/GlobalOpt/array-elem-refs.ll --- a/llvm/test/Transforms/GlobalOpt/array-elem-refs.ll +++ b/llvm/test/Transforms/GlobalOpt/array-elem-refs.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -globalopt | FileCheck %s +; RUN: opt < %s -S -passes=globalopt | FileCheck %s 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/assume.ll b/llvm/test/Transforms/GlobalOpt/assume.ll --- a/llvm/test/Transforms/GlobalOpt/assume.ll +++ b/llvm/test/Transforms/GlobalOpt/assume.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; CHECK: @tmp = local_unnamed_addr global i32 42 diff --git a/llvm/test/Transforms/GlobalOpt/atexit.ll b/llvm/test/Transforms/GlobalOpt/atexit.ll --- a/llvm/test/Transforms/GlobalOpt/atexit.ll +++ b/llvm/test/Transforms/GlobalOpt/atexit.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: ModuleID define internal i32 @__cxa_atexit(void (i8*)* nocapture %func, i8* nocapture %arg, i8* nocapture %dso_handle) nounwind readnone optsize noimplicitfloat { diff --git a/llvm/test/Transforms/GlobalOpt/atomic.ll b/llvm/test/Transforms/GlobalOpt/atomic.ll --- a/llvm/test/Transforms/GlobalOpt/atomic.ll +++ b/llvm/test/Transforms/GlobalOpt/atomic.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt < %s -S -o - | FileCheck %s +; RUN: opt -passes=globalopt < %s -S -o - | FileCheck %s @GV1 = internal global i64 1, align 8 @GV2 = internal global i32 0, align 4 diff --git a/llvm/test/Transforms/GlobalOpt/available_externally_global_ctors.ll b/llvm/test/Transforms/GlobalOpt/available_externally_global_ctors.ll --- a/llvm/test/Transforms/GlobalOpt/available_externally_global_ctors.ll +++ b/llvm/test/Transforms/GlobalOpt/available_externally_global_ctors.ll @@ -1,7 +1,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; Verify that the initialization of the available_externally global is not eliminated ; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo_static_init, i8* null }] diff --git a/llvm/test/Transforms/GlobalOpt/basictest.ll b/llvm/test/Transforms/GlobalOpt/basictest.ll --- a/llvm/test/Transforms/GlobalOpt/basictest.ll +++ b/llvm/test/Transforms/GlobalOpt/basictest.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: global diff --git a/llvm/test/Transforms/GlobalOpt/blockaddress.ll b/llvm/test/Transforms/GlobalOpt/blockaddress.ll --- a/llvm/test/Transforms/GlobalOpt/blockaddress.ll +++ b/llvm/test/Transforms/GlobalOpt/blockaddress.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @x = internal global i8* zeroinitializer diff --git a/llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll b/llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll --- a/llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll +++ b/llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S -o - < %s | FileCheck %s +; RUN: opt -passes=globalopt -S -o - < %s | FileCheck %s @glbl = internal global i8* null diff --git a/llvm/test/Transforms/GlobalOpt/coldcc_stress_test.ll b/llvm/test/Transforms/GlobalOpt/coldcc_stress_test.ll --- a/llvm/test/Transforms/GlobalOpt/coldcc_stress_test.ll +++ b/llvm/test/Transforms/GlobalOpt/coldcc_stress_test.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -globalopt -S -enable-coldcc-stress-test -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=COLDCC -; RUN: opt < %s -globalopt -S | FileCheck %s -check-prefix=CHECK +; RUN: opt < %s -passes=globalopt -S -enable-coldcc-stress-test -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s -check-prefix=COLDCC +; RUN: opt < %s -passes=globalopt -S | FileCheck %s -check-prefix=CHECK define internal i32 @callee_default(i32* %m) { ; COLDCC-LABEL: define internal coldcc i32 @callee_default diff --git a/llvm/test/Transforms/GlobalOpt/compiler-used.ll b/llvm/test/Transforms/GlobalOpt/compiler-used.ll --- a/llvm/test/Transforms/GlobalOpt/compiler-used.ll +++ b/llvm/test/Transforms/GlobalOpt/compiler-used.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Test that when all members of llvm.compiler.used are found to be redundant ; we delete it instead of crashing. diff --git a/llvm/test/Transforms/GlobalOpt/const-return-status-atomic.ll b/llvm/test/Transforms/GlobalOpt/const-return-status-atomic.ll --- a/llvm/test/Transforms/GlobalOpt/const-return-status-atomic.ll +++ b/llvm/test/Transforms/GlobalOpt/const-return-status-atomic.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt < %s -S -o - | FileCheck %s +; RUN: opt -passes=globalopt < %s -S -o - | FileCheck %s ; When simplifying users of a global variable, the pass could incorrectly ; return false if there were still some uses left, and no further optimizations diff --git a/llvm/test/Transforms/GlobalOpt/const-return-status.ll b/llvm/test/Transforms/GlobalOpt/const-return-status.ll --- a/llvm/test/Transforms/GlobalOpt/const-return-status.ll +++ b/llvm/test/Transforms/GlobalOpt/const-return-status.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt < %s -S -o - | FileCheck %s +; RUN: opt -passes=globalopt < %s -S -o - | FileCheck %s ; When simplifying users of a global variable, the pass could incorrectly ; return false if there were still some uses left, and no further optimizations diff --git a/llvm/test/Transforms/GlobalOpt/constantfold-initializers.ll b/llvm/test/Transforms/GlobalOpt/constantfold-initializers.ll --- a/llvm/test/Transforms/GlobalOpt/constantfold-initializers.ll +++ b/llvm/test/Transforms/GlobalOpt/constantfold-initializers.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -globalopt | FileCheck %s +; RUN: opt < %s -S -passes=globalopt | FileCheck %s 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" diff --git a/llvm/test/Transforms/GlobalOpt/crash-2.ll b/llvm/test/Transforms/GlobalOpt/crash-2.ll --- a/llvm/test/Transforms/GlobalOpt/crash-2.ll +++ b/llvm/test/Transforms/GlobalOpt/crash-2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -globalopt -disable-output +; RUN: llvm-as < %s | opt -passes=globalopt -disable-output ; NOTE: This needs to run through 'llvm-as' first to reproduce the error! ; PR15440 diff --git a/llvm/test/Transforms/GlobalOpt/crash.ll b/llvm/test/Transforms/GlobalOpt/crash.ll --- a/llvm/test/Transforms/GlobalOpt/crash.ll +++ b/llvm/test/Transforms/GlobalOpt/crash.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -disable-output < %s +; RUN: opt -passes=globalopt -disable-output < %s 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-f80:128:128-n8:16:32" target triple = "i386-apple-darwin9.8" diff --git a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll --- a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll +++ b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-constexpr.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s 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" target triple = "x86_64-apple-darwin10.0.0" diff --git a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-inbounds.ll b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-inbounds.ll --- a/llvm/test/Transforms/GlobalOpt/ctor-list-opt-inbounds.ll +++ b/llvm/test/Transforms/GlobalOpt/ctor-list-opt-inbounds.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Don't get fooled by the inbounds keyword; it doesn't change ; the computed address. diff --git a/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll b/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll --- a/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: CTOR %ini = type { i32, void()*, i8* } @llvm.global_ctors = appending global [11 x %ini] [ diff --git a/llvm/test/Transforms/GlobalOpt/dead-store-status.ll b/llvm/test/Transforms/GlobalOpt/dead-store-status.ll --- a/llvm/test/Transforms/GlobalOpt/dead-store-status.ll +++ b/llvm/test/Transforms/GlobalOpt/dead-store-status.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; When removing the store to @global in @foo, the pass would incorrectly return ; false. This was caught by the pass return status check that is hidden under diff --git a/llvm/test/Transforms/GlobalOpt/deaddeclaration.ll b/llvm/test/Transforms/GlobalOpt/deaddeclaration.ll --- a/llvm/test/Transforms/GlobalOpt/deaddeclaration.ll +++ b/llvm/test/Transforms/GlobalOpt/deaddeclaration.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: aa ; CHECK-NOT: bb diff --git a/llvm/test/Transforms/GlobalOpt/deadfunction.ll b/llvm/test/Transforms/GlobalOpt/deadfunction.ll --- a/llvm/test/Transforms/GlobalOpt/deadfunction.ll +++ b/llvm/test/Transforms/GlobalOpt/deadfunction.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: test diff --git a/llvm/test/Transforms/GlobalOpt/deadglobal-2.ll b/llvm/test/Transforms/GlobalOpt/deadglobal-2.ll --- a/llvm/test/Transforms/GlobalOpt/deadglobal-2.ll +++ b/llvm/test/Transforms/GlobalOpt/deadglobal-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; This is a harder case to delete as the GEP has a variable index. ; CHECK-NOT: internal diff --git a/llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll b/llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll --- a/llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll +++ b/llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | llvm-as | llvm-dis | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | llvm-as | llvm-dis | FileCheck %s ; The %struct.S type would not get emitted after @s was removed, resulting in ; llvm-as failing to parse the dbg.value intrinsic using that type. The diff --git a/llvm/test/Transforms/GlobalOpt/deadglobal.ll b/llvm/test/Transforms/GlobalOpt/deadglobal.ll --- a/llvm/test/Transforms/GlobalOpt/deadglobal.ll +++ b/llvm/test/Transforms/GlobalOpt/deadglobal.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @G1 = internal global i32 123 ; [#uses=1] @A1 = internal alias i32, i32* @G1 diff --git a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-2.ll b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-2.ll --- a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-2.ll +++ b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Test the evaluation of a store and a load via a bitcast, and check ; that globals are constant folded to the correct value. diff --git a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-3.ll b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-3.ll --- a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-3.ll +++ b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-3.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Test the evaluation of a load via a bitcast and a store via a GEP. ; Check that globals are constant folded to the correct value. diff --git a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-4.ll b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-4.ll --- a/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-4.ll +++ b/llvm/test/Transforms/GlobalOpt/evaluate-bitcast-4.ll @@ -1,5 +1,5 @@ ; PR48055. Check that this does not crash. -; RUN: opt -globalopt %s -disable-output +; RUN: opt -passes=globalopt %s -disable-output target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/externally-initialized-aggregate.ll b/llvm/test/Transforms/GlobalOpt/externally-initialized-aggregate.ll --- a/llvm/test/Transforms/GlobalOpt/externally-initialized-aggregate.ll +++ b/llvm/test/Transforms/GlobalOpt/externally-initialized-aggregate.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -globalopt | FileCheck %s +; RUN: opt < %s -S -passes=globalopt | FileCheck %s ; This global is externally_initialized, so if we split it into scalars we ; should keep that flag set on all of the new globals. This will prevent the diff --git a/llvm/test/Transforms/GlobalOpt/externally-initialized-global-ctr.ll b/llvm/test/Transforms/GlobalOpt/externally-initialized-global-ctr.ll --- a/llvm/test/Transforms/GlobalOpt/externally-initialized-global-ctr.ll +++ b/llvm/test/Transforms/GlobalOpt/externally-initialized-global-ctr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; rdar://12580965. ; ObjC++ test case. diff --git a/llvm/test/Transforms/GlobalOpt/externally-initialized.ll b/llvm/test/Transforms/GlobalOpt/externally-initialized.ll --- a/llvm/test/Transforms/GlobalOpt/externally-initialized.ll +++ b/llvm/test/Transforms/GlobalOpt/externally-initialized.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -globalopt | FileCheck %s +; RUN: opt < %s -S -passes=globalopt | FileCheck %s ; This global is externally_initialized, which may modify the value between ; it's static initializer and any code in this module being run, so the only diff --git a/llvm/test/Transforms/GlobalOpt/fastcc.ll b/llvm/test/Transforms/GlobalOpt/fastcc.ll --- a/llvm/test/Transforms/GlobalOpt/fastcc.ll +++ b/llvm/test/Transforms/GlobalOpt/fastcc.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s declare token @llvm.call.preallocated.setup(i32) declare i8* @llvm.call.preallocated.arg(token, i32) diff --git a/llvm/test/Transforms/GlobalOpt/global-demotion.ll b/llvm/test/Transforms/GlobalOpt/global-demotion.ll --- a/llvm/test/Transforms/GlobalOpt/global-demotion.ll +++ b/llvm/test/Transforms/GlobalOpt/global-demotion.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s @G1 = internal global i32 5 @G2 = internal global i32 5 diff --git a/llvm/test/Transforms/GlobalOpt/globalsra-align.ll b/llvm/test/Transforms/GlobalOpt/globalsra-align.ll --- a/llvm/test/Transforms/GlobalOpt/globalsra-align.ll +++ b/llvm/test/Transforms/GlobalOpt/globalsra-align.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "p:16:32:64" ; 16-bit pointers with 32-bit ABI alignment and 64-bit preferred alignmentt diff --git a/llvm/test/Transforms/GlobalOpt/globalsra-multigep.ll b/llvm/test/Transforms/GlobalOpt/globalsra-multigep.ll --- a/llvm/test/Transforms/GlobalOpt/globalsra-multigep.ll +++ b/llvm/test/Transforms/GlobalOpt/globalsra-multigep.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/globalsra-partial.ll b/llvm/test/Transforms/GlobalOpt/globalsra-partial.ll --- a/llvm/test/Transforms/GlobalOpt/globalsra-partial.ll +++ b/llvm/test/Transforms/GlobalOpt/globalsra-partial.ll @@ -1,6 +1,6 @@ ; In this case, the global cannot be merged as i may be out of range -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global { i32, [4 x float] } zeroinitializer ; <{ i32, [4 x float] }*> [#uses=3] diff --git a/llvm/test/Transforms/GlobalOpt/globalsra-unknown-index.ll b/llvm/test/Transforms/GlobalOpt/globalsra-unknown-index.ll --- a/llvm/test/Transforms/GlobalOpt/globalsra-unknown-index.ll +++ b/llvm/test/Transforms/GlobalOpt/globalsra-unknown-index.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; globalopt should not sra the global, because it can't see the index. diff --git a/llvm/test/Transforms/GlobalOpt/globalsra.ll b/llvm/test/Transforms/GlobalOpt/globalsra.ll --- a/llvm/test/Transforms/GlobalOpt/globalsra.ll +++ b/llvm/test/Transforms/GlobalOpt/globalsra.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: global target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-1-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-1-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-1-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-1-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" %struct.foo = type { i32, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-1.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-1.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-1.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-1.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" ;; Heap SROA has been removed. This tests we don't perform heap SROA. diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-2-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-2-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-2-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-2-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" %struct.foo = type { i32, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-2.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-2.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-2.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" ;; Heap SROA has been removed. This tests we don't perform heap SROA. diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-phi-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-phi-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-phi-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-phi-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" %struct.foo = type { i32, i32 } diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll --- a/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll +++ b/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" diff --git a/llvm/test/Transforms/GlobalOpt/int_sideeffect.ll b/llvm/test/Transforms/GlobalOpt/int_sideeffect.ll --- a/llvm/test/Transforms/GlobalOpt/int_sideeffect.ll +++ b/llvm/test/Transforms/GlobalOpt/int_sideeffect.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -globalopt | FileCheck %s +; RUN: opt -S < %s -passes=globalopt | FileCheck %s ; Static evaluation across a @llvm.sideeffect. diff --git a/llvm/test/Transforms/GlobalOpt/integer-bool-dwarf.ll b/llvm/test/Transforms/GlobalOpt/integer-bool-dwarf.ll --- a/llvm/test/Transforms/GlobalOpt/integer-bool-dwarf.ll +++ b/llvm/test/Transforms/GlobalOpt/integer-bool-dwarf.ll @@ -1,4 +1,4 @@ -;RUN: opt -S -globalopt -f %s | FileCheck %s +;RUN: opt -S -passes=globalopt -f %s | FileCheck %s ;CHECK: @foo = internal unnamed_addr global i1 false, align 4, !dbg ![[VAR:.*]] ;CHECK: ![[VAR]] = !DIGlobalVariableExpression(var: !1, expr: diff --git a/llvm/test/Transforms/GlobalOpt/invariant-nodatalayout.ll b/llvm/test/Transforms/GlobalOpt/invariant-nodatalayout.ll --- a/llvm/test/Transforms/GlobalOpt/invariant-nodatalayout.ll +++ b/llvm/test/Transforms/GlobalOpt/invariant-nodatalayout.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S -o - < %s | FileCheck %s +; RUN: opt -passes=globalopt -S -o - < %s | FileCheck %s ; The check here is that it doesn't crash. declare {}* @llvm.invariant.start.p0i8(i64 %size, i8* nocapture %ptr) diff --git a/llvm/test/Transforms/GlobalOpt/invariant.group.ll b/llvm/test/Transforms/GlobalOpt/invariant.group.ll --- a/llvm/test/Transforms/GlobalOpt/invariant.group.ll +++ b/llvm/test/Transforms/GlobalOpt/invariant.group.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; CHECK: @llvm.global_ctors = appending global [1 x {{.*}}@_GLOBAL__I_c @llvm.global_ctors = appending global [3 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_a, i8* null }, { i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_b, i8* null }, { i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_c, i8* null }] diff --git a/llvm/test/Transforms/GlobalOpt/invariant.ll b/llvm/test/Transforms/GlobalOpt/invariant.ll --- a/llvm/test/Transforms/GlobalOpt/invariant.ll +++ b/llvm/test/Transforms/GlobalOpt/invariant.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S -o - < %s | FileCheck %s +; RUN: opt -passes=globalopt -S -o - < %s | FileCheck %s 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/invoke.ll b/llvm/test/Transforms/GlobalOpt/invoke.ll --- a/llvm/test/Transforms/GlobalOpt/invoke.ll +++ b/llvm/test/Transforms/GlobalOpt/invoke.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; rdar://11022897 ; Globalopt should be able to evaluate an invoke. diff --git a/llvm/test/Transforms/GlobalOpt/iterate.ll b/llvm/test/Transforms/GlobalOpt/iterate.ll --- a/llvm/test/Transforms/GlobalOpt/iterate.ll +++ b/llvm/test/Transforms/GlobalOpt/iterate.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: %G @G = internal global i32 0 ; [#uses=1] diff --git a/llvm/test/Transforms/GlobalOpt/large-int-crash.ll b/llvm/test/Transforms/GlobalOpt/large-int-crash.ll --- a/llvm/test/Transforms/GlobalOpt/large-int-crash.ll +++ b/llvm/test/Transforms/GlobalOpt/large-int-crash.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @X = internal global i128 0 diff --git a/llvm/test/Transforms/GlobalOpt/load-store-global-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/load-store-global-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/load-store-global-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/load-store-global-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @a = internal global i64* null, align 8 ; CHECK: @a diff --git a/llvm/test/Transforms/GlobalOpt/load-store-global.ll b/llvm/test/Transforms/GlobalOpt/load-store-global.ll --- a/llvm/test/Transforms/GlobalOpt/load-store-global.ll +++ b/llvm/test/Transforms/GlobalOpt/load-store-global.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @G = internal global i32 17 ; [#uses=3] ; CHECK-NOT: @G diff --git a/llvm/test/Transforms/GlobalOpt/localize-constexpr-debuginfo.ll b/llvm/test/Transforms/GlobalOpt/localize-constexpr-debuginfo.ll --- a/llvm/test/Transforms/GlobalOpt/localize-constexpr-debuginfo.ll +++ b/llvm/test/Transforms/GlobalOpt/localize-constexpr-debuginfo.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -globalopt | FileCheck %s +; RUN: opt -S < %s -passes=globalopt | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/localize-constexpr.ll b/llvm/test/Transforms/GlobalOpt/localize-constexpr.ll --- a/llvm/test/Transforms/GlobalOpt/localize-constexpr.ll +++ b/llvm/test/Transforms/GlobalOpt/localize-constexpr.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -globalopt | FileCheck %s +; RUN: opt -S < %s -passes=globalopt | FileCheck %s @G = internal global i32 42 diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-1-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-1-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-1-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-1-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global i32* null ; [#uses=3] diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-1.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-1.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-1.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-1.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global i32* null ; [#uses=4] diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-2-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-2-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-2-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-2-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global i32* null diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-2.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-2.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-2.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global i32* null diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-3.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-3.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-3.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-3.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" @G = internal global i32* null diff --git a/llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll b/llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll --- a/llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll +++ b/llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt -o - < %s | FileCheck %s +; RUN: opt -S -passes=globalopt -o - < %s | FileCheck %s ; CHECK: [[G_INIT:@.*]] = internal unnamed_addr global i1 false @g = internal global i32* null, align 8 diff --git a/llvm/test/Transforms/GlobalOpt/memcpy.ll b/llvm/test/Transforms/GlobalOpt/memcpy.ll --- a/llvm/test/Transforms/GlobalOpt/memcpy.ll +++ b/llvm/test/Transforms/GlobalOpt/memcpy.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: G1 = internal unnamed_addr constant @G1 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00" ; <[58 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/GlobalOpt/memset-null.ll b/llvm/test/Transforms/GlobalOpt/memset-null.ll --- a/llvm/test/Transforms/GlobalOpt/memset-null.ll +++ b/llvm/test/Transforms/GlobalOpt/memset-null.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; PR10047 %0 = type { i32, void ()*, i8* } diff --git a/llvm/test/Transforms/GlobalOpt/memset.ll b/llvm/test/Transforms/GlobalOpt/memset.ll --- a/llvm/test/Transforms/GlobalOpt/memset.ll +++ b/llvm/test/Transforms/GlobalOpt/memset.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; CHECK-NOT: internal diff --git a/llvm/test/Transforms/GlobalOpt/metadata.ll b/llvm/test/Transforms/GlobalOpt/metadata.ll --- a/llvm/test/Transforms/GlobalOpt/metadata.ll +++ b/llvm/test/Transforms/GlobalOpt/metadata.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt < %s | FileCheck %s +; RUN: opt -S -passes=globalopt < %s | FileCheck %s ; PR6112 - When globalopt does RAUW(@G, %G), the metadata reference should drop ; to null. Function local metadata that references @G from a different function diff --git a/llvm/test/Transforms/GlobalOpt/musttail_cc.ll b/llvm/test/Transforms/GlobalOpt/musttail_cc.ll --- a/llvm/test/Transforms/GlobalOpt/musttail_cc.ll +++ b/llvm/test/Transforms/GlobalOpt/musttail_cc.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; PR36546 ; Check that musttail callee preserves its calling convention diff --git a/llvm/test/Transforms/GlobalOpt/naked_functions.ll b/llvm/test/Transforms/GlobalOpt/naked_functions.ll --- a/llvm/test/Transforms/GlobalOpt/naked_functions.ll +++ b/llvm/test/Transforms/GlobalOpt/naked_functions.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; Check that naked functions don't get marked with fast calling conventions diff --git a/llvm/test/Transforms/GlobalOpt/new-promote.ll b/llvm/test/Transforms/GlobalOpt/new-promote.ll --- a/llvm/test/Transforms/GlobalOpt/new-promote.ll +++ b/llvm/test/Transforms/GlobalOpt/new-promote.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s ; RUN: opt -passes=globalopt -S < %s | FileCheck %s %s = type { i32 } diff --git a/llvm/test/Transforms/GlobalOpt/null-check-global-value.ll b/llvm/test/Transforms/GlobalOpt/null-check-global-value.ll --- a/llvm/test/Transforms/GlobalOpt/null-check-global-value.ll +++ b/llvm/test/Transforms/GlobalOpt/null-check-global-value.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s %sometype = type { i8* } diff --git a/llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll b/llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll --- a/llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll +++ b/llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt -o - < %s | FileCheck %s +; RUN: opt -S -passes=globalopt -o - < %s | FileCheck %s target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll b/llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll --- a/llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll +++ b/llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -globalopt -o - < %s | FileCheck %s +; RUN: opt -S -passes=globalopt -o - < %s | FileCheck %s ; No malloc promotion with non-null check. diff --git a/llvm/test/Transforms/GlobalOpt/phi-select.ll b/llvm/test/Transforms/GlobalOpt/phi-select.ll --- a/llvm/test/Transforms/GlobalOpt/phi-select.ll +++ b/llvm/test/Transforms/GlobalOpt/phi-select.ll @@ -1,7 +1,7 @@ ; Test that PHI nodes and select instructions do not necessarily make stuff ; non-constant. -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: global @X = internal global i32 4 ; [#uses=2] diff --git a/llvm/test/Transforms/GlobalOpt/pr21191.ll b/llvm/test/Transforms/GlobalOpt/pr21191.ll --- a/llvm/test/Transforms/GlobalOpt/pr21191.ll +++ b/llvm/test/Transforms/GlobalOpt/pr21191.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s $c = comdat any ; CHECK: $c = comdat any diff --git a/llvm/test/Transforms/GlobalOpt/pr33686.ll b/llvm/test/Transforms/GlobalOpt/pr33686.ll --- a/llvm/test/Transforms/GlobalOpt/pr33686.ll +++ b/llvm/test/Transforms/GlobalOpt/pr33686.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -globalopt %s | FileCheck %s +; RUN: opt -S -passes=globalopt %s | FileCheck %s @glob = external global i16, align 1 diff --git a/llvm/test/Transforms/GlobalOpt/preallocated.ll b/llvm/test/Transforms/GlobalOpt/preallocated.ll --- a/llvm/test/Transforms/GlobalOpt/preallocated.ll +++ b/llvm/test/Transforms/GlobalOpt/preallocated.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s declare token @llvm.call.preallocated.setup(i32) declare i8* @llvm.call.preallocated.arg(token, i32) diff --git a/llvm/test/Transforms/GlobalOpt/preserve-comdats.ll b/llvm/test/Transforms/GlobalOpt/preserve-comdats.ll --- a/llvm/test/Transforms/GlobalOpt/preserve-comdats.ll +++ b/llvm/test/Transforms/GlobalOpt/preserve-comdats.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s $comdat_global = comdat any diff --git a/llvm/test/Transforms/GlobalOpt/shrink-address-to-bool.ll b/llvm/test/Transforms/GlobalOpt/shrink-address-to-bool.ll --- a/llvm/test/Transforms/GlobalOpt/shrink-address-to-bool.ll +++ b/llvm/test/Transforms/GlobalOpt/shrink-address-to-bool.ll @@ -1,4 +1,4 @@ -;RUN: opt -S -globalopt -f %s | FileCheck %s +;RUN: opt -S -passes=globalopt -f %s | FileCheck %s ;CHECK: @foo = {{.*}}, !dbg !0 @foo = global i64 ptrtoint ([1 x i64]* @baa to i64), align 8, !dbg !0 diff --git a/llvm/test/Transforms/GlobalOpt/shrink-global-to-bool-check-debug.ll b/llvm/test/Transforms/GlobalOpt/shrink-global-to-bool-check-debug.ll --- a/llvm/test/Transforms/GlobalOpt/shrink-global-to-bool-check-debug.ll +++ b/llvm/test/Transforms/GlobalOpt/shrink-global-to-bool-check-debug.ll @@ -1,4 +1,4 @@ -;RUN: opt -S -debugify -globalopt -f %s | FileCheck %s +; RUN: opt -S -passes=debugify,globalopt -f %s | FileCheck %s @foo = internal global i32 0, align 4 diff --git a/llvm/test/Transforms/GlobalOpt/static-const-bitcast.ll b/llvm/test/Transforms/GlobalOpt/static-const-bitcast.ll --- a/llvm/test/Transforms/GlobalOpt/static-const-bitcast.ll +++ b/llvm/test/Transforms/GlobalOpt/static-const-bitcast.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt %s -S -o - | FileCheck %s +; RUN: opt -passes=globalopt %s -S -o - | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/GlobalOpt/store-struct-element.ll b/llvm/test/Transforms/GlobalOpt/store-struct-element.ll --- a/llvm/test/Transforms/GlobalOpt/store-struct-element.ll +++ b/llvm/test/Transforms/GlobalOpt/store-struct-element.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S -o - | FileCheck %s +; RUN: opt < %s -passes=globalopt -S -o - | FileCheck %s %class.Class = type { i8, i8, i8, i8 } @A = local_unnamed_addr global %class.Class undef, align 4 diff --git a/llvm/test/Transforms/GlobalOpt/storepointer-compare-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/storepointer-compare-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/storepointer-compare-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/storepointer-compare-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: global @G = internal global void ()* null ; [#uses=2] diff --git a/llvm/test/Transforms/GlobalOpt/storepointer-compare.ll b/llvm/test/Transforms/GlobalOpt/storepointer-compare.ll --- a/llvm/test/Transforms/GlobalOpt/storepointer-compare.ll +++ b/llvm/test/Transforms/GlobalOpt/storepointer-compare.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK: call void @Actual ; Check that a comparison does not prevent an indirect call from being made diff --git a/llvm/test/Transforms/GlobalOpt/storepointer-no-null-opt.ll b/llvm/test/Transforms/GlobalOpt/storepointer-no-null-opt.ll --- a/llvm/test/Transforms/GlobalOpt/storepointer-no-null-opt.ll +++ b/llvm/test/Transforms/GlobalOpt/storepointer-no-null-opt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s @G = internal global void ()* null ; [#uses=2] ; CHECK: global diff --git a/llvm/test/Transforms/GlobalOpt/storepointer.ll b/llvm/test/Transforms/GlobalOpt/storepointer.ll --- a/llvm/test/Transforms/GlobalOpt/storepointer.ll +++ b/llvm/test/Transforms/GlobalOpt/storepointer.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: global @G = internal global void ()* null ; [#uses=2] diff --git a/llvm/test/Transforms/GlobalOpt/tls.ll b/llvm/test/Transforms/GlobalOpt/tls.ll --- a/llvm/test/Transforms/GlobalOpt/tls.ll +++ b/llvm/test/Transforms/GlobalOpt/tls.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s -; RUN: opt -emulated-tls < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s +; RUN: opt -emulated-tls < %s -passes=globalopt -S | FileCheck %s declare void @wait() declare void @signal() diff --git a/llvm/test/Transforms/GlobalOpt/trivialstore.ll b/llvm/test/Transforms/GlobalOpt/trivialstore.ll --- a/llvm/test/Transforms/GlobalOpt/trivialstore.ll +++ b/llvm/test/Transforms/GlobalOpt/trivialstore.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: G @G = internal global i32 17 ; [#uses=3] diff --git a/llvm/test/Transforms/GlobalOpt/undef-init.ll b/llvm/test/Transforms/GlobalOpt/undef-init.ll --- a/llvm/test/Transforms/GlobalOpt/undef-init.ll +++ b/llvm/test/Transforms/GlobalOpt/undef-init.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -globalopt -S | FileCheck %s +; RUN: opt < %s -passes=globalopt -S | FileCheck %s ; CHECK-NOT: store @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [ { i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I__Z3foov, i8* null } ] ; <[1 x { i32, void ()*, i8* }]*> [#uses=0] diff --git a/llvm/test/Transforms/GlobalOpt/unnamed-addr.ll b/llvm/test/Transforms/GlobalOpt/unnamed-addr.ll --- a/llvm/test/Transforms/GlobalOpt/unnamed-addr.ll +++ b/llvm/test/Transforms/GlobalOpt/unnamed-addr.ll @@ -1,4 +1,4 @@ -; RUN: opt -globalopt -S < %s | FileCheck %s +; RUN: opt -passes=globalopt -S < %s | FileCheck %s @a = internal global i32 0, align 4 @b = internal global i32 0, align 4 diff --git a/llvm/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll b/llvm/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll --- a/llvm/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll +++ b/llvm/test/Transforms/GlobalOpt/zeroinitializer-gep-load.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -globalopt | FileCheck %s +; RUN: opt < %s -S -passes=globalopt | FileCheck %s @zero = internal global [10 x i32] zeroinitializer diff --git a/llvm/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll b/llvm/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll --- a/llvm/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll +++ b/llvm/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep sub +; RUN: opt < %s -passes=sccp -S | not grep sub define void @test3(i32, i32) { add i32 0, 0 ; :3 [#uses=0] diff --git a/llvm/test/Transforms/SCCP/2002-05-20-MissedIncomingValue.ll b/llvm/test/Transforms/SCCP/2002-05-20-MissedIncomingValue.ll --- a/llvm/test/Transforms/SCCP/2002-05-20-MissedIncomingValue.ll +++ b/llvm/test/Transforms/SCCP/2002-05-20-MissedIncomingValue.ll @@ -1,7 +1,7 @@ ; This test shows a case where SCCP is incorrectly eliminating the PHI node ; because it thinks it has a constant 0 value, when it really doesn't. -; RUN: opt < %s -sccp -S | grep phi +; RUN: opt < %s -passes=sccp -S | grep phi define i32 @test(i32 %A, i1 %c) { bb1: diff --git a/llvm/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll b/llvm/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll --- a/llvm/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll +++ b/llvm/test/Transforms/SCCP/2002-08-30-GetElementPtrTest.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep %X +; RUN: opt < %s -passes=sccp -S | not grep %X @G = external global [40 x i32] ; <[40 x i32]*> [#uses=1] diff --git a/llvm/test/Transforms/SCCP/2003-08-26-InvokeHandling.ll b/llvm/test/Transforms/SCCP/2003-08-26-InvokeHandling.ll --- a/llvm/test/Transforms/SCCP/2003-08-26-InvokeHandling.ll +++ b/llvm/test/Transforms/SCCP/2003-08-26-InvokeHandling.ll @@ -1,5 +1,5 @@ ; The PHI cannot be eliminated from this testcase, SCCP is mishandling invoke's! -; RUN: opt < %s -sccp -S | grep phi +; RUN: opt < %s -passes=sccp -S | grep phi declare void @foo() diff --git a/llvm/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll b/llvm/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll --- a/llvm/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll +++ b/llvm/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -disable-output +; RUN: opt < %s -passes=sccp -disable-output declare i32 @foo() diff --git a/llvm/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll b/llvm/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll --- a/llvm/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll +++ b/llvm/test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | grep "ret i32 %X" +; RUN: opt < %s -passes=sccp -S | grep "ret i32 %X" ; This function definitely returns 1, even if we don't know the direction ; of the branch. diff --git a/llvm/test/Transforms/SCCP/2006-10-23-IPSCCP-Crash.ll b/llvm/test/Transforms/SCCP/2006-10-23-IPSCCP-Crash.ll --- a/llvm/test/Transforms/SCCP/2006-10-23-IPSCCP-Crash.ll +++ b/llvm/test/Transforms/SCCP/2006-10-23-IPSCCP-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -disable-output +; RUN: opt < %s -passes=sccp -disable-output ; END. target datalayout = "E-p:32:32" target triple = "powerpc-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SCCP/2006-12-04-PackedType.ll b/llvm/test/Transforms/SCCP/2006-12-04-PackedType.ll --- a/llvm/test/Transforms/SCCP/2006-12-04-PackedType.ll +++ b/llvm/test/Transforms/SCCP/2006-12-04-PackedType.ll @@ -1,7 +1,7 @@ ; Test VectorType handling by SCCP. ; SCCP ignores VectorTypes until PR 1034 is fixed ; -; RUN: opt < %s -sccp +; RUN: opt < %s -passes=sccp ; END. target datalayout = "E-p:32:32" diff --git a/llvm/test/Transforms/SCCP/2006-12-19-UndefBug.ll b/llvm/test/Transforms/SCCP/2006-12-19-UndefBug.ll --- a/llvm/test/Transforms/SCCP/2006-12-19-UndefBug.ll +++ b/llvm/test/Transforms/SCCP/2006-12-19-UndefBug.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i1 @foo() { ; CHECK-LABEL: @foo( diff --git a/llvm/test/Transforms/SCCP/2007-05-16-InvokeCrash.ll b/llvm/test/Transforms/SCCP/2007-05-16-InvokeCrash.ll --- a/llvm/test/Transforms/SCCP/2007-05-16-InvokeCrash.ll +++ b/llvm/test/Transforms/SCCP/2007-05-16-InvokeCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -disable-output +; RUN: opt < %s -passes=sccp -disable-output ; PR1431 define void @_ada_bench() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { diff --git a/llvm/test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll b/llvm/test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll --- a/llvm/test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll +++ b/llvm/test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | grep undef | count 1 +; RUN: opt < %s -passes=sccp -S | grep undef | count 1 ; PR1938 define i32 @main() { diff --git a/llvm/test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll b/llvm/test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll --- a/llvm/test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll +++ b/llvm/test/Transforms/SCCP/2008-04-22-multiple-ret-sccp.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | grep "ret i32 %Z" +; RUN: opt < %s -passes=sccp -S | grep "ret i32 %Z" ; rdar://5778210 declare {i32, i32} @bar(i32 %A) diff --git a/llvm/test/Transforms/SCCP/2008-05-23-UndefCallFold.ll b/llvm/test/Transforms/SCCP/2008-05-23-UndefCallFold.ll --- a/llvm/test/Transforms/SCCP/2008-05-23-UndefCallFold.ll +++ b/llvm/test/Transforms/SCCP/2008-05-23-UndefCallFold.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep "ret i32 undef" +; RUN: opt < %s -passes=sccp -S | not grep "ret i32 undef" ; PR2358 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-f80:128:128" diff --git a/llvm/test/Transforms/SCCP/2008-06-09-WeakProp.ll b/llvm/test/Transforms/SCCP/2008-06-09-WeakProp.ll --- a/llvm/test/Transforms/SCCP/2008-06-09-WeakProp.ll +++ b/llvm/test/Transforms/SCCP/2008-06-09-WeakProp.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; Should not propagate the result of a weak function. ; PR2411 diff --git a/llvm/test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll b/llvm/test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll --- a/llvm/test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll +++ b/llvm/test/Transforms/SCCP/2009-01-14-IPSCCP-Invoke.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -ipsccp -S | grep "ret i32 42" -; RUN: opt < %s -ipsccp -S | grep "ret i32 undef" +; RUN: opt < %s -passes=ipsccp -S | grep "ret i32 42" +; RUN: opt < %s -passes=ipsccp -S | grep "ret i32 undef" ; PR3325 define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { diff --git a/llvm/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll b/llvm/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll --- a/llvm/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll +++ b/llvm/test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -disable-output +; RUN: opt < %s -passes=sccp -disable-output ; PR4277 define i32 @main() nounwind { diff --git a/llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll b/llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll --- a/llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll +++ b/llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; Don't constant-propagate byval pointers, since they are not pointers! ; PR5038 %struct.MYstr = type { i8, i32 } diff --git a/llvm/test/Transforms/SCCP/PR16052.ll b/llvm/test/Transforms/SCCP/PR16052.ll --- a/llvm/test/Transforms/SCCP/PR16052.ll +++ b/llvm/test/Transforms/SCCP/PR16052.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SCCP/PR26044.ll b/llvm/test/Transforms/SCCP/PR26044.ll --- a/llvm/test/Transforms/SCCP/PR26044.ll +++ b/llvm/test/Transforms/SCCP/PR26044.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SCCP/PR43857.ll b/llvm/test/Transforms/SCCP/PR43857.ll --- a/llvm/test/Transforms/SCCP/PR43857.ll +++ b/llvm/test/Transforms/SCCP/PR43857.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s %struct.wobble = type { i32 } %struct.zot = type { %struct.wobble, %struct.wobble, %struct.wobble } diff --git a/llvm/test/Transforms/SCCP/apfloat-basictest.ll b/llvm/test/Transforms/SCCP/apfloat-basictest.ll --- a/llvm/test/Transforms/SCCP/apfloat-basictest.ll +++ b/llvm/test/Transforms/SCCP/apfloat-basictest.ll @@ -1,7 +1,7 @@ ; This is a basic sanity check for constant propagation. The fneg instruction ; should be eliminated. -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define double @test(i1 %B) { br i1 %B, label %BB1, label %BB2 diff --git a/llvm/test/Transforms/SCCP/apint-array.ll b/llvm/test/Transforms/SCCP/apint-array.ll --- a/llvm/test/Transforms/SCCP/apint-array.ll +++ b/llvm/test/Transforms/SCCP/apint-array.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | grep "ret i101 12" +; RUN: opt < %s -passes=sccp -S | grep "ret i101 12" @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12,i101 -123456789000000, i101 0,i101 9123456789000000] diff --git a/llvm/test/Transforms/SCCP/apint-basictest.ll b/llvm/test/Transforms/SCCP/apint-basictest.ll --- a/llvm/test/Transforms/SCCP/apint-basictest.ll +++ b/llvm/test/Transforms/SCCP/apint-basictest.ll @@ -1,7 +1,7 @@ ; This is a basic sanity check for constant propagation. The add instruction ; should be eliminated. -; RUN: opt < %s -sccp -S | not grep add +; RUN: opt < %s -passes=sccp -S | not grep add define i128 @test(i1 %B) { br i1 %B, label %BB1, label %BB2 diff --git a/llvm/test/Transforms/SCCP/apint-basictest2.ll b/llvm/test/Transforms/SCCP/apint-basictest2.ll --- a/llvm/test/Transforms/SCCP/apint-basictest2.ll +++ b/llvm/test/Transforms/SCCP/apint-basictest2.ll @@ -1,8 +1,8 @@ ; This is a basic sanity check for constant propagation. The add instruction ; and phi instruction should be eliminated. -; RUN: opt < %s -sccp -S | not grep phi -; RUN: opt < %s -sccp -S | not grep add +; RUN: opt < %s -passes=sccp -S | not grep phi +; RUN: opt < %s -passes=sccp -S | not grep add define i128 @test(i1 %B) { br i1 %B, label %BB1, label %BB2 diff --git a/llvm/test/Transforms/SCCP/apint-basictest3.ll b/llvm/test/Transforms/SCCP/apint-basictest3.ll --- a/llvm/test/Transforms/SCCP/apint-basictest3.ll +++ b/llvm/test/Transforms/SCCP/apint-basictest3.ll @@ -2,8 +2,8 @@ ; arithmetic operations. -; RUN: opt < %s -sccp -S | not grep mul -; RUN: opt < %s -sccp -S | not grep umod +; RUN: opt < %s -passes=sccp -S | not grep mul +; RUN: opt < %s -passes=sccp -S | not grep umod define i128 @test(i1 %B) { br i1 %B, label %BB1, label %BB2 diff --git a/llvm/test/Transforms/SCCP/apint-basictest4.ll b/llvm/test/Transforms/SCCP/apint-basictest4.ll --- a/llvm/test/Transforms/SCCP/apint-basictest4.ll +++ b/llvm/test/Transforms/SCCP/apint-basictest4.ll @@ -2,9 +2,9 @@ ; logic operations. -; RUN: opt < %s -sccp -S | not grep and -; RUN: opt < %s -sccp -S | not grep trunc -; RUN: opt < %s -sccp -S | grep "ret i100 -1" +; RUN: opt < %s -passes=sccp -S | not grep and +; RUN: opt < %s -passes=sccp -S | not grep trunc +; RUN: opt < %s -passes=sccp -S | grep "ret i100 -1" define i100 @test(i133 %A) { %B = and i133 0, %A diff --git a/llvm/test/Transforms/SCCP/apint-bigarray.ll b/llvm/test/Transforms/SCCP/apint-bigarray.ll --- a/llvm/test/Transforms/SCCP/apint-bigarray.ll +++ b/llvm/test/Transforms/SCCP/apint-bigarray.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep %X +; RUN: opt < %s -passes=sccp -S | not grep %X @G = global [1000000 x i10000] zeroinitializer diff --git a/llvm/test/Transforms/SCCP/apint-bigint.ll b/llvm/test/Transforms/SCCP/apint-bigint.ll --- a/llvm/test/Transforms/SCCP/apint-bigint.ll +++ b/llvm/test/Transforms/SCCP/apint-bigint.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep xor +; RUN: opt < %s -passes=sccp -S | not grep xor define i11129 @test1() { %B = shl i11129 1, 11128 diff --git a/llvm/test/Transforms/SCCP/apint-bigint2.ll b/llvm/test/Transforms/SCCP/apint-bigint2.ll --- a/llvm/test/Transforms/SCCP/apint-bigint2.ll +++ b/llvm/test/Transforms/SCCP/apint-bigint2.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s @Y = constant [6 x i101] [ i101 12, i101 123456789000000, i101 -12, i101 -123456789000000, i101 0,i101 9123456789000000] diff --git a/llvm/test/Transforms/SCCP/apint-ipsccp1.ll b/llvm/test/Transforms/SCCP/apint-ipsccp1.ll --- a/llvm/test/Transforms/SCCP/apint-ipsccp1.ll +++ b/llvm/test/Transforms/SCCP/apint-ipsccp1.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | grep -v "ret i512 undef" | \ +; RUN: opt < %s -passes=ipsccp -S | grep -v "ret i512 undef" | \ ; RUN: grep "ret i8 2" define internal i512 @test(i1 %B) { diff --git a/llvm/test/Transforms/SCCP/apint-ipsccp2.ll b/llvm/test/Transforms/SCCP/apint-ipsccp2.ll --- a/llvm/test/Transforms/SCCP/apint-ipsccp2.ll +++ b/llvm/test/Transforms/SCCP/apint-ipsccp2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | grep -v "ret i101 0" | \ +; RUN: opt < %s -passes=ipsccp -S | grep -v "ret i101 0" | \ ; RUN: grep -v "ret i101 undef" | not grep ret diff --git a/llvm/test/Transforms/SCCP/apint-ipsccp3.ll b/llvm/test/Transforms/SCCP/apint-ipsccp3.ll --- a/llvm/test/Transforms/SCCP/apint-ipsccp3.ll +++ b/llvm/test/Transforms/SCCP/apint-ipsccp3.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s @G = internal global i66 undef diff --git a/llvm/test/Transforms/SCCP/apint-ipsccp4.ll b/llvm/test/Transforms/SCCP/apint-ipsccp4.ll --- a/llvm/test/Transforms/SCCP/apint-ipsccp4.ll +++ b/llvm/test/Transforms/SCCP/apint-ipsccp4.ll @@ -1,8 +1,8 @@ ; This test makes sure that these instructions are properly constant propagated. -; RUN: opt < %s -ipsccp -S | not grep load -; RUN: opt < %s -ipsccp -S | not grep add -; RUN: opt < %s -ipsccp -S | not grep phi +; RUN: opt < %s -passes=ipsccp -S | not grep load +; RUN: opt < %s -passes=ipsccp -S | not grep add +; RUN: opt < %s -passes=ipsccp -S | not grep phi @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 }, diff --git a/llvm/test/Transforms/SCCP/apint-load.ll b/llvm/test/Transforms/SCCP/apint-load.ll --- a/llvm/test/Transforms/SCCP/apint-load.ll +++ b/llvm/test/Transforms/SCCP/apint-load.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly constant propagated. -; RUN: opt < %s -ipsccp -S | not grep load -; RUN: opt < %s -ipsccp -S | not grep fdiv +; RUN: opt < %s -passes=ipsccp -S | not grep load +; RUN: opt < %s -passes=ipsccp -S | not grep fdiv @X = constant i212 42 @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 }, diff --git a/llvm/test/Transforms/SCCP/apint-phi.ll b/llvm/test/Transforms/SCCP/apint-phi.ll --- a/llvm/test/Transforms/SCCP/apint-phi.ll +++ b/llvm/test/Transforms/SCCP/apint-phi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | not grep phi +; RUN: opt < %s -passes=sccp -S | not grep phi define i999 @test(i999%A, i1 %c) { bb1: diff --git a/llvm/test/Transforms/SCCP/apint-select.ll b/llvm/test/Transforms/SCCP/apint-select.ll --- a/llvm/test/Transforms/SCCP/apint-select.ll +++ b/llvm/test/Transforms/SCCP/apint-select.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s @A = constant i32 10 diff --git a/llvm/test/Transforms/SCCP/apint-xor.ll b/llvm/test/Transforms/SCCP/apint-xor.ll --- a/llvm/test/Transforms/SCCP/apint-xor.ll +++ b/llvm/test/Transforms/SCCP/apint-xor.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s ; Test some XOR simplifications / range propagation. define void@xor1(i1 %cmp) { diff --git a/llvm/test/Transforms/SCCP/arg-count-mismatch.ll b/llvm/test/Transforms/SCCP/arg-count-mismatch.ll --- a/llvm/test/Transforms/SCCP/arg-count-mismatch.ll +++ b/llvm/test/Transforms/SCCP/arg-count-mismatch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S -o - | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S -o - | FileCheck %s ; The original C source looked like this: ; diff --git a/llvm/test/Transforms/SCCP/arg-type-mismatch.ll b/llvm/test/Transforms/SCCP/arg-type-mismatch.ll --- a/llvm/test/Transforms/SCCP/arg-type-mismatch.ll +++ b/llvm/test/Transforms/SCCP/arg-type-mismatch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S -o - | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S -o - | FileCheck %s ; This test is just to verify that we do not crash/assert due to mismatch in ; argument type between the caller and callee. diff --git a/llvm/test/Transforms/SCCP/assume.ll b/llvm/test/Transforms/SCCP/assume.ll --- a/llvm/test/Transforms/SCCP/assume.ll +++ b/llvm/test/Transforms/SCCP/assume.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) declare void @llvm.assume(i1) diff --git a/llvm/test/Transforms/SCCP/atomic-load-store.ll b/llvm/test/Transforms/SCCP/atomic-load-store.ll --- a/llvm/test/Transforms/SCCP/atomic-load-store.ll +++ b/llvm/test/Transforms/SCCP/atomic-load-store.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; This transformation is safe for atomic loads and stores; check that it works. diff --git a/llvm/test/Transforms/SCCP/atomic.ll b/llvm/test/Transforms/SCCP/atomic.ll --- a/llvm/test/Transforms/SCCP/atomic.ll +++ b/llvm/test/Transforms/SCCP/atomic.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i1 @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) { ; CHECK-LABEL: @test_cmpxchg diff --git a/llvm/test/Transforms/SCCP/binaryops-constexprs.ll b/llvm/test/Transforms/SCCP/binaryops-constexprs.ll --- a/llvm/test/Transforms/SCCP/binaryops-constexprs.ll +++ b/llvm/test/Transforms/SCCP/binaryops-constexprs.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s declare void @use.i32(i32) declare void @use.i1(i1) diff --git a/llvm/test/Transforms/SCCP/binaryops-range-special-cases.ll b/llvm/test/Transforms/SCCP/binaryops-range-special-cases.ll --- a/llvm/test/Transforms/SCCP/binaryops-range-special-cases.ll +++ b/llvm/test/Transforms/SCCP/binaryops-range-special-cases.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) define void @sdiv1_cmp_constants(i32 %x) { diff --git a/llvm/test/Transforms/SCCP/bitcast.ll b/llvm/test/Transforms/SCCP/bitcast.ll --- a/llvm/test/Transforms/SCCP/bitcast.ll +++ b/llvm/test/Transforms/SCCP/bitcast.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s define i128 @vector_to_int_cast() { %A = bitcast <4 x i32> to i128 diff --git a/llvm/test/Transforms/SCCP/clang-arc-rv.ll b/llvm/test/Transforms/SCCP/clang-arc-rv.ll --- a/llvm/test/Transforms/SCCP/clang-arc-rv.ll +++ b/llvm/test/Transforms/SCCP/clang-arc-rv.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; Return value can't be zapped if there is a call that has operand bundle ; "clang.arc.attachedcall". diff --git a/llvm/test/Transforms/SCCP/comdat-ipo.ll b/llvm/test/Transforms/SCCP/comdat-ipo.ll --- a/llvm/test/Transforms/SCCP/comdat-ipo.ll +++ b/llvm/test/Transforms/SCCP/comdat-ipo.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; See PR26774 diff --git a/llvm/test/Transforms/SCCP/conditions-iter-order.ll b/llvm/test/Transforms/SCCP/conditions-iter-order.ll --- a/llvm/test/Transforms/SCCP/conditions-iter-order.ll +++ b/llvm/test/Transforms/SCCP/conditions-iter-order.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s declare noalias i8* @malloc(i64) diff --git a/llvm/test/Transforms/SCCP/conditions-ranges-with-undef.ll b/llvm/test/Transforms/SCCP/conditions-ranges-with-undef.ll --- a/llvm/test/Transforms/SCCP/conditions-ranges-with-undef.ll +++ b/llvm/test/Transforms/SCCP/conditions-ranges-with-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/conditions-ranges.ll b/llvm/test/Transforms/SCCP/conditions-ranges.ll --- a/llvm/test/Transforms/SCCP/conditions-ranges.ll +++ b/llvm/test/Transforms/SCCP/conditions-ranges.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/constant-range-struct.ll b/llvm/test/Transforms/SCCP/constant-range-struct.ll --- a/llvm/test/Transforms/SCCP/constant-range-struct.ll +++ b/llvm/test/Transforms/SCCP/constant-range-struct.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt %s -ipsccp -S | FileCheck %s +; RUN: opt %s -passes=ipsccp -S | FileCheck %s declare i1 @cond() declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/constant-struct.ll b/llvm/test/Transforms/SCCP/constant-struct.ll --- a/llvm/test/Transforms/SCCP/constant-struct.ll +++ b/llvm/test/Transforms/SCCP/constant-struct.ll @@ -1,5 +1,5 @@ ; Test that constant structs are folded. -; RUN: opt %s -sccp -S | FileCheck %s +; RUN: opt %s -passes=sccp -S | FileCheck %s define internal {i64} @struct1() { %a = insertvalue {i64} undef, i64 24, 0 diff --git a/llvm/test/Transforms/SCCP/crash.ll b/llvm/test/Transforms/SCCP/crash.ll --- a/llvm/test/Transforms/SCCP/crash.ll +++ b/llvm/test/Transforms/SCCP/crash.ll @@ -1,4 +1,4 @@ -; RUN: opt -sccp -S < %s +; RUN: opt -passes=sccp -S < %s 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" target triple = "x86_64-apple-darwin10.0" diff --git a/llvm/test/Transforms/SCCP/deadarg.ll b/llvm/test/Transforms/SCCP/deadarg.ll --- a/llvm/test/Transforms/SCCP/deadarg.ll +++ b/llvm/test/Transforms/SCCP/deadarg.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -disable-output +; RUN: opt < %s -passes=ipsccp -disable-output define internal void @foo(i32 %X) { call void @foo( i32 %X ) ret void diff --git a/llvm/test/Transforms/SCCP/definite-initializer.ll b/llvm/test/Transforms/SCCP/definite-initializer.ll --- a/llvm/test/Transforms/SCCP/definite-initializer.ll +++ b/llvm/test/Transforms/SCCP/definite-initializer.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s @d = internal externally_initialized global i32 0, section ".openbsd.randomdata", align 4 ; CHECK-LABEL: @test1( diff --git a/llvm/test/Transforms/SCCP/domtree-update.ll b/llvm/test/Transforms/SCCP/domtree-update.ll --- a/llvm/test/Transforms/SCCP/domtree-update.ll +++ b/llvm/test/Transforms/SCCP/domtree-update.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s ; RUN: opt -S -passes='ipsccp,function(verify)' < %s | FileCheck %s ; DTU should not crash. diff --git a/llvm/test/Transforms/SCCP/dont-zap-return.ll b/llvm/test/Transforms/SCCP/dont-zap-return.ll --- a/llvm/test/Transforms/SCCP/dont-zap-return.ll +++ b/llvm/test/Transforms/SCCP/dont-zap-return.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp < %s -S | FileCheck %s +; RUN: opt -passes=ipsccp < %s -S | FileCheck %s define internal {i32, i32} @identity(i32 %patatino) { %foo = insertvalue {i32, i32} {i32 1, i32 undef}, i32 %patatino, 1 diff --git a/llvm/test/Transforms/SCCP/float-nan-simplification.ll b/llvm/test/Transforms/SCCP/float-nan-simplification.ll --- a/llvm/test/Transforms/SCCP/float-nan-simplification.ll +++ b/llvm/test/Transforms/SCCP/float-nan-simplification.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -sccp -S %s | FileCheck %s +; RUN: opt -passes=sccp -S %s | FileCheck %s ; When marking the edge from bb2 -> exit as executable first, %p will be NaN ; first and %v.1 will simplify to NaN. But when marking bb1 -> exit executable, diff --git a/llvm/test/Transforms/SCCP/float-phis.ll b/llvm/test/Transforms/SCCP/float-phis.ll --- a/llvm/test/Transforms/SCCP/float-phis.ll +++ b/llvm/test/Transforms/SCCP/float-phis.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/fp-bc-icmp-const-fold.ll b/llvm/test/Transforms/SCCP/fp-bc-icmp-const-fold.ll --- a/llvm/test/Transforms/SCCP/fp-bc-icmp-const-fold.ll +++ b/llvm/test/Transforms/SCCP/fp-bc-icmp-const-fold.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux" diff --git a/llvm/test/Transforms/SCCP/global-alias-constprop.ll b/llvm/test/Transforms/SCCP/global-alias-constprop.ll --- a/llvm/test/Transforms/SCCP/global-alias-constprop.ll +++ b/llvm/test/Transforms/SCCP/global-alias-constprop.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -sccp -S | FileCheck %s ; RUN: opt < %s -passes=sccp -S | FileCheck %s @0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1] diff --git a/llvm/test/Transforms/SCCP/global.ll b/llvm/test/Transforms/SCCP/global.ll --- a/llvm/test/Transforms/SCCP/global.ll +++ b/llvm/test/Transforms/SCCP/global.ll @@ -1,5 +1,4 @@ ; RUN: opt < %s -S -passes=ipsccp | FileCheck %s -; RUN: opt < %s -S -ipsccp | FileCheck %s @_ZL6test1g = internal global i32 42, align 4 diff --git a/llvm/test/Transforms/SCCP/indirectbr.ll b/llvm/test/Transforms/SCCP/indirectbr.ll --- a/llvm/test/Transforms/SCCP/indirectbr.ll +++ b/llvm/test/Transforms/SCCP/indirectbr.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s declare void @BB0_f() declare void @BB1_f() diff --git a/llvm/test/Transforms/SCCP/int-phis.ll b/llvm/test/Transforms/SCCP/int-phis.ll --- a/llvm/test/Transforms/SCCP/int-phis.ll +++ b/llvm/test/Transforms/SCCP/int-phis.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/intrinsics.ll b/llvm/test/Transforms/SCCP/intrinsics.ll --- a/llvm/test/Transforms/SCCP/intrinsics.ll +++ b/llvm/test/Transforms/SCCP/intrinsics.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s declare i8 @llvm.abs.i8(i8, i1) declare <2 x i8> @llvm.abs.v2i8(<2 x i8>, i1) diff --git a/llvm/test/Transforms/SCCP/ip-add-range-to-call.ll b/llvm/test/Transforms/SCCP/ip-add-range-to-call.ll --- a/llvm/test/Transforms/SCCP/ip-add-range-to-call.ll +++ b/llvm/test/Transforms/SCCP/ip-add-range-to-call.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s ; Test 1. ; Both arguments and return value of @callee can be tracked. The inferred range diff --git a/llvm/test/Transforms/SCCP/ip-constant-ranges.ll b/llvm/test/Transforms/SCCP/ip-constant-ranges.ll --- a/llvm/test/Transforms/SCCP/ip-constant-ranges.ll +++ b/llvm/test/Transforms/SCCP/ip-constant-ranges.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; Constant range for %a is [1, 48) and for %b is [301, 1000) ; CHECK-LABEL: f1 diff --git a/llvm/test/Transforms/SCCP/ip-ranges-binaryops.ll b/llvm/test/Transforms/SCCP/ip-ranges-binaryops.ll --- a/llvm/test/Transforms/SCCP/ip-ranges-binaryops.ll +++ b/llvm/test/Transforms/SCCP/ip-ranges-binaryops.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; x = [10, 21), y = [100, 201) ; x + y = [110, 221) diff --git a/llvm/test/Transforms/SCCP/ip-ranges-casts.ll b/llvm/test/Transforms/SCCP/ip-ranges-casts.ll --- a/llvm/test/Transforms/SCCP/ip-ranges-casts.ll +++ b/llvm/test/Transforms/SCCP/ip-ranges-casts.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; x = [100, 301) define internal i1 @f.trunc(i32 %x) { diff --git a/llvm/test/Transforms/SCCP/ip-ranges-phis.ll b/llvm/test/Transforms/SCCP/ip-ranges-phis.ll --- a/llvm/test/Transforms/SCCP/ip-ranges-phis.ll +++ b/llvm/test/Transforms/SCCP/ip-ranges-phis.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s define internal i32 @f1(i32 %x) { ; CHECK-LABEL: define internal i32 @f1( diff --git a/llvm/test/Transforms/SCCP/ip-ranges-select.ll b/llvm/test/Transforms/SCCP/ip-ranges-select.ll --- a/llvm/test/Transforms/SCCP/ip-ranges-select.ll +++ b/llvm/test/Transforms/SCCP/ip-ranges-select.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp -S %s -o -| FileCheck %s +; RUN: opt -passes=ipsccp -S %s -o -| FileCheck %s define void @caller.1(i8* %arg) { ; CHECK-LABEL: define void @caller.1(i8* %arg) { diff --git a/llvm/test/Transforms/SCCP/ip-ranges-sext.ll b/llvm/test/Transforms/SCCP/ip-ranges-sext.ll --- a/llvm/test/Transforms/SCCP/ip-ranges-sext.ll +++ b/llvm/test/Transforms/SCCP/ip-ranges-sext.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s -o -| FileCheck %s +; RUN: opt -passes=ipsccp -S %s -o -| FileCheck %s define i64 @test1(i32 %x) { ; CHECK-LABEL: @test1( diff --git a/llvm/test/Transforms/SCCP/ipsccp-addr-taken.ll b/llvm/test/Transforms/SCCP/ipsccp-addr-taken.ll --- a/llvm/test/Transforms/SCCP/ipsccp-addr-taken.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-addr-taken.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp -S < %s | FileCheck %s +; RUN: opt -passes=ipsccp -S < %s | FileCheck %s ; PR7876 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" target triple = "x86_64-apple-darwin10.0.0" diff --git a/llvm/test/Transforms/SCCP/ipsccp-basic.ll b/llvm/test/Transforms/SCCP/ipsccp-basic.ll --- a/llvm/test/Transforms/SCCP/ipsccp-basic.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-basic.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s -; RUN: opt < %s -enable-debugify -ipsccp -debugify-quiet -disable-output +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s +; RUN: opt < %s -enable-debugify -passes=ipsccp -debugify-quiet -disable-output ;;======================== test1 diff --git a/llvm/test/Transforms/SCCP/ipsccp-branch-unresolved-undef.ll b/llvm/test/Transforms/SCCP/ipsccp-branch-unresolved-undef.ll --- a/llvm/test/Transforms/SCCP/ipsccp-branch-unresolved-undef.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-branch-unresolved-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s define void @main() { ; CHECK-LABEL: @main( diff --git a/llvm/test/Transforms/SCCP/ipsccp-clear-returned.ll b/llvm/test/Transforms/SCCP/ipsccp-clear-returned.ll --- a/llvm/test/Transforms/SCCP/ipsccp-clear-returned.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-clear-returned.ll @@ -2,7 +2,7 @@ ; then the "returned" attribute of input arguments ; should be cleared. -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s define i32 @main() { ; CHECK-LABEL: @main entry: diff --git a/llvm/test/Transforms/SCCP/ipsccp-cycles.ll b/llvm/test/Transforms/SCCP/ipsccp-cycles.ll --- a/llvm/test/Transforms/SCCP/ipsccp-cycles.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-cycles.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s define internal i32 @test1a(i32 %A, i32 %b) { ; CHECK-LABEL: @test1a( diff --git a/llvm/test/Transforms/SCCP/ipsccp-phi-one-pred-dead.ll b/llvm/test/Transforms/SCCP/ipsccp-phi-one-pred-dead.ll --- a/llvm/test/Transforms/SCCP/ipsccp-phi-one-pred-dead.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-phi-one-pred-dead.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s target triple = "x86_64-unknown-linux-gnu" define void @test() { diff --git a/llvm/test/Transforms/SCCP/ipsccp-predinfo-order.ll b/llvm/test/Transforms/SCCP/ipsccp-predinfo-order.ll --- a/llvm/test/Transforms/SCCP/ipsccp-predinfo-order.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-predinfo-order.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s declare i32 @hoge() diff --git a/llvm/test/Transforms/SCCP/ipsccp-range-crashes.ll b/llvm/test/Transforms/SCCP/ipsccp-range-crashes.ll --- a/llvm/test/Transforms/SCCP/ipsccp-range-crashes.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-range-crashes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s ; A few test cases exposing crashes with the initial range implementation. diff --git a/llvm/test/Transforms/SCCP/ipsccp-ssa-copy-nested-conds.ll b/llvm/test/Transforms/SCCP/ipsccp-ssa-copy-nested-conds.ll --- a/llvm/test/Transforms/SCCP/ipsccp-ssa-copy-nested-conds.ll +++ b/llvm/test/Transforms/SCCP/ipsccp-ssa-copy-nested-conds.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s ; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; Test for PR39772 diff --git a/llvm/test/Transforms/SCCP/ipscp-drop-argmemonly.ll b/llvm/test/Transforms/SCCP/ipscp-drop-argmemonly.ll --- a/llvm/test/Transforms/SCCP/ipscp-drop-argmemonly.ll +++ b/llvm/test/Transforms/SCCP/ipscp-drop-argmemonly.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s ; Test cases to ensure argmemonly/inaccessiblemem_or_argmemonly attributes are ; dropped, if a function argument is replaced by a constant. diff --git a/llvm/test/Transforms/SCCP/latticeval-invalidate.ll b/llvm/test/Transforms/SCCP/latticeval-invalidate.ll --- a/llvm/test/Transforms/SCCP/latticeval-invalidate.ll +++ b/llvm/test/Transforms/SCCP/latticeval-invalidate.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -sccp %s +; RUN: opt -S -passes=sccp %s @A = external constant i32 diff --git a/llvm/test/Transforms/SCCP/load-store-range.ll b/llvm/test/Transforms/SCCP/load-store-range.ll --- a/llvm/test/Transforms/SCCP/load-store-range.ll +++ b/llvm/test/Transforms/SCCP/load-store-range.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/loadtest.ll b/llvm/test/Transforms/SCCP/loadtest.ll --- a/llvm/test/Transforms/SCCP/loadtest.ll +++ b/llvm/test/Transforms/SCCP/loadtest.ll @@ -1,8 +1,8 @@ ; This test makes sure that these instructions are properly constant propagated. -; RUN: opt < %s -data-layout="e-p:32:32" -debugify -sccp -S | FileCheck %s -; RUN: opt < %s -data-layout="E-p:32:32" -debugify -sccp -S | FileCheck %s -; RUN: opt < %s -data-layout="E-p:32:32" -debugify -ipsccp -S | FileCheck %s +; RUN: opt < %s -data-layout="e-p:32:32" -passes=debugify,sccp -S | FileCheck %s +; RUN: opt < %s -data-layout="E-p:32:32" -passes=debugify,sccp -S | FileCheck %s +; RUN: opt < %s -data-layout="E-p:32:32" -passes=debugify,ipsccp -S | FileCheck %s @X = constant i32 42 ; [#uses=1] @Y = constant [2 x { i32, float }] [ { i32, float } { i32 12, float 1.000000e+00 }, { i32, float } { i32 37, float 0x3FF3B2FEC0000000 } ] ; <[2 x { i32, float }]*> [#uses=2] diff --git a/llvm/test/Transforms/SCCP/loadtest2.ll b/llvm/test/Transforms/SCCP/loadtest2.ll --- a/llvm/test/Transforms/SCCP/loadtest2.ll +++ b/llvm/test/Transforms/SCCP/loadtest2.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -data-layout="E-p:32:32" -ipsccp -S | FileCheck %s +; RUN: opt < %s -data-layout="E-p:32:32" -passes=ipsccp -S | FileCheck %s @j = internal global i32 undef, align 4 diff --git a/llvm/test/Transforms/SCCP/logical-nuke.ll b/llvm/test/Transforms/SCCP/logical-nuke.ll --- a/llvm/test/Transforms/SCCP/logical-nuke.ll +++ b/llvm/test/Transforms/SCCP/logical-nuke.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values. diff --git a/llvm/test/Transforms/SCCP/metadata.ll b/llvm/test/Transforms/SCCP/metadata.ll --- a/llvm/test/Transforms/SCCP/metadata.ll +++ b/llvm/test/Transforms/SCCP/metadata.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s declare void @use(i1) declare i32 @get_i32() diff --git a/llvm/test/Transforms/SCCP/multiple_callbacks.ll b/llvm/test/Transforms/SCCP/multiple_callbacks.ll --- a/llvm/test/Transforms/SCCP/multiple_callbacks.ll +++ b/llvm/test/Transforms/SCCP/multiple_callbacks.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s ; ; ; /---------------------------------------| diff --git a/llvm/test/Transforms/SCCP/musttail-call.ll b/llvm/test/Transforms/SCCP/musttail-call.ll --- a/llvm/test/Transforms/SCCP/musttail-call.ll +++ b/llvm/test/Transforms/SCCP/musttail-call.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; PR36485 ; musttail call result can\'t be replaced with a constant, unless the call ; can be removed diff --git a/llvm/test/Transforms/SCCP/naked-return.ll b/llvm/test/Transforms/SCCP/naked-return.ll --- a/llvm/test/Transforms/SCCP/naked-return.ll +++ b/llvm/test/Transforms/SCCP/naked-return.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" target triple = "i686-pc-windows-msvc19.0.24215" diff --git a/llvm/test/Transforms/SCCP/openmp_parallel_for.ll b/llvm/test/Transforms/SCCP/openmp_parallel_for.ll --- a/llvm/test/Transforms/SCCP/openmp_parallel_for.ll +++ b/llvm/test/Transforms/SCCP/openmp_parallel_for.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s ; ; void bar(int, float, double); ; diff --git a/llvm/test/Transforms/SCCP/overdefined-div.ll b/llvm/test/Transforms/SCCP/overdefined-div.ll --- a/llvm/test/Transforms/SCCP/overdefined-div.ll +++ b/llvm/test/Transforms/SCCP/overdefined-div.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when div can nuke overdefined values. diff --git a/llvm/test/Transforms/SCCP/overdefined-ext.ll b/llvm/test/Transforms/SCCP/overdefined-ext.ll --- a/llvm/test/Transforms/SCCP/overdefined-ext.ll +++ b/llvm/test/Transforms/SCCP/overdefined-ext.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i32 @zext_lshr(i1 %t0) { ; CHECK-LABEL: @zext_lshr( diff --git a/llvm/test/Transforms/SCCP/phi-cycle.ll b/llvm/test/Transforms/SCCP/phi-cycle.ll --- a/llvm/test/Transforms/SCCP/phi-cycle.ll +++ b/llvm/test/Transforms/SCCP/phi-cycle.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s declare i1 @cond() diff --git a/llvm/test/Transforms/SCCP/phis.ll b/llvm/test/Transforms/SCCP/phis.ll --- a/llvm/test/Transforms/SCCP/phis.ll +++ b/llvm/test/Transforms/SCCP/phis.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i1 @float.1(i1 %cmp) { ; CHECK-LABEL: define i1 @float.1(i1 %cmp) { diff --git a/llvm/test/Transforms/SCCP/pr27712.ll b/llvm/test/Transforms/SCCP/pr27712.ll --- a/llvm/test/Transforms/SCCP/pr27712.ll +++ b/llvm/test/Transforms/SCCP/pr27712.ll @@ -1,4 +1,4 @@ -; RUN: opt -sccp -S < %s | FileCheck %s +; RUN: opt -passes=sccp -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SCCP/pr35357.ll b/llvm/test/Transforms/SCCP/pr35357.ll --- a/llvm/test/Transforms/SCCP/pr35357.ll +++ b/llvm/test/Transforms/SCCP/pr35357.ll @@ -1,4 +1,4 @@ -; RUN: opt -S %s -ipsccp | FileCheck %s +; RUN: opt -S %s -passes=ipsccp | FileCheck %s @a = internal global i32 2 diff --git a/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll b/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll --- a/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll +++ b/llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s ;Test for PR45185. diff --git a/llvm/test/Transforms/SCCP/pr49582-iterator-invalidation.ll b/llvm/test/Transforms/SCCP/pr49582-iterator-invalidation.ll --- a/llvm/test/Transforms/SCCP/pr49582-iterator-invalidation.ll +++ b/llvm/test/Transforms/SCCP/pr49582-iterator-invalidation.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -disable-output +; RUN: opt < %s -passes=ipsccp -disable-output ; PR49582: This test checks for an iterator invalidation issue, which only gets ; exposed on a large-enough test case. We intentionally do not check the output. diff --git a/llvm/test/Transforms/SCCP/pr52253.ll b/llvm/test/Transforms/SCCP/pr52253.ll --- a/llvm/test/Transforms/SCCP/pr52253.ll +++ b/llvm/test/Transforms/SCCP/pr52253.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i1 @foo(i32 %t4, i32 %t10) { ; CHECK-LABEL: @foo( diff --git a/llvm/test/Transforms/SCCP/predicateinfo-cond.ll b/llvm/test/Transforms/SCCP/predicateinfo-cond.ll --- a/llvm/test/Transforms/SCCP/predicateinfo-cond.ll +++ b/llvm/test/Transforms/SCCP/predicateinfo-cond.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s ; Test that information about the true/false value of conditions themselves ; is also used, not information implied by comparisions. diff --git a/llvm/test/Transforms/SCCP/preserve-analysis.ll b/llvm/test/Transforms/SCCP/preserve-analysis.ll --- a/llvm/test/Transforms/SCCP/preserve-analysis.ll +++ b/llvm/test/Transforms/SCCP/preserve-analysis.ll @@ -1,19 +1,8 @@ -; RUN: opt < %s -debug-pass=Structure -globals-aa -loop-vectorize -sccp -loop-vectorize -globals-aa -enable-new-pm=0 2>&1 -S | FileCheck %s ; RUN: opt < %s -debug-pass-manager -passes='loop-vectorize,sccp,loop-vectorize' 2>&1 -S | FileCheck --check-prefix=NEW-PM %s ; Check CFG-only analysis are preserved by SCCP by running it between 2 ; loop-vectorize runs. -; CHECK: Globals Alias Analysis -; CHECK: Dominator Tree Construction -; CHECK: Natural Loop Information -; CHECK: Sparse Conditional Constant Propagation -; CHECK: Post-Dominator Tree Construction -; CHECK-NOT: Dominator Tree Construction -; CHECK-NOT: Natural Loop Information -; CHECK-NOT: Globals Alias Analysis -; CHECK: Loop Vectorization - ; NEW-PM-DAG: Running analysis: LoopAnalysis on test ; NEW-PM-DAG: Running analysis: DominatorTreeAnalysis on test ; NEW-PM-DAG: Running analysis: AssumptionAnalysis on test diff --git a/llvm/test/Transforms/SCCP/pthreads.ll b/llvm/test/Transforms/SCCP/pthreads.ll --- a/llvm/test/Transforms/SCCP/pthreads.ll +++ b/llvm/test/Transforms/SCCP/pthreads.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S < %s | FileCheck %s +; RUN: opt -passes=ipsccp -S < %s | FileCheck %s ; ; #include ; diff --git a/llvm/test/Transforms/SCCP/range-and-ip.ll b/llvm/test/Transforms/SCCP/range-and-ip.ll --- a/llvm/test/Transforms/SCCP/range-and-ip.ll +++ b/llvm/test/Transforms/SCCP/range-and-ip.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp %s | FileCheck %s +; RUN: opt -S -passes=ipsccp %s | FileCheck %s ; Make sure IPSCCP does not assume %r < 256 for @f1. Undef is passed at a call ; site, which won't be eliminated. diff --git a/llvm/test/Transforms/SCCP/range-and.ll b/llvm/test/Transforms/SCCP/range-and.ll --- a/llvm/test/Transforms/SCCP/range-and.ll +++ b/llvm/test/Transforms/SCCP/range-and.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --verbose -; RUN: opt -S -sccp %s | FileCheck %s +; RUN: opt -S -passes=sccp %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/SCCP/ranges-sext.ll b/llvm/test/Transforms/SCCP/ranges-sext.ll --- a/llvm/test/Transforms/SCCP/ranges-sext.ll +++ b/llvm/test/Transforms/SCCP/ranges-sext.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -sccp -S %s -o -| FileCheck %s +; RUN: opt -passes=sccp -S %s -o -| FileCheck %s define i64 @test1_sext_op_can_be_undef(i1 %c.1, i1 %c.2) { ; CHECK-LABEL: @test1_sext_op_can_be_undef( diff --git a/llvm/test/Transforms/SCCP/remove-call-inst.ll b/llvm/test/Transforms/SCCP/remove-call-inst.ll --- a/llvm/test/Transforms/SCCP/remove-call-inst.ll +++ b/llvm/test/Transforms/SCCP/remove-call-inst.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s ; PR5596 ; IPSCCP should propagate the 0 argument, eliminate the switch, and propagate diff --git a/llvm/test/Transforms/SCCP/replace-dereferenceable-ptr-with-undereferenceable.ll b/llvm/test/Transforms/SCCP/replace-dereferenceable-ptr-with-undereferenceable.ll --- a/llvm/test/Transforms/SCCP/replace-dereferenceable-ptr-with-undereferenceable.ll +++ b/llvm/test/Transforms/SCCP/replace-dereferenceable-ptr-with-undereferenceable.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s @y = common global [1 x i32] zeroinitializer, align 4 @x = common global [1 x i32] zeroinitializer, align 4 diff --git a/llvm/test/Transforms/SCCP/resolvedundefsin-tracked-fn.ll b/llvm/test/Transforms/SCCP/resolvedundefsin-tracked-fn.ll --- a/llvm/test/Transforms/SCCP/resolvedundefsin-tracked-fn.ll +++ b/llvm/test/Transforms/SCCP/resolvedundefsin-tracked-fn.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s %t1 = type opaque diff --git a/llvm/test/Transforms/SCCP/return-argument.ll b/llvm/test/Transforms/SCCP/return-argument.ll --- a/llvm/test/Transforms/SCCP/return-argument.ll +++ b/llvm/test/Transforms/SCCP/return-argument.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ;; This function returns its second argument on all return statements define internal i32* @incdec(i1 %C, i32* %V) { diff --git a/llvm/test/Transforms/SCCP/return-constants.ll b/llvm/test/Transforms/SCCP/return-constants.ll --- a/llvm/test/Transforms/SCCP/return-constants.ll +++ b/llvm/test/Transforms/SCCP/return-constants.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s %0 = type { i32, i32 } diff --git a/llvm/test/Transforms/SCCP/return-zapped.ll b/llvm/test/Transforms/SCCP/return-zapped.ll --- a/llvm/test/Transforms/SCCP/return-zapped.ll +++ b/llvm/test/Transforms/SCCP/return-zapped.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s ; After the first round of Solver.Solve(), the return value of @testf still ; undefined as we hit a branch on undef. Therefore the conditional branch on diff --git a/llvm/test/Transforms/SCCP/retvalue-undef.ll b/llvm/test/Transforms/SCCP/retvalue-undef.ll --- a/llvm/test/Transforms/SCCP/retvalue-undef.ll +++ b/llvm/test/Transforms/SCCP/retvalue-undef.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp -S < %s | FileCheck %s +; RUN: opt -passes=ipsccp -S < %s | FileCheck %s ; PR6414 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SCCP/sccptest.ll b/llvm/test/Transforms/SCCP/sccptest.ll --- a/llvm/test/Transforms/SCCP/sccptest.ll +++ b/llvm/test/Transforms/SCCP/sccptest.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s ; This is a basic sanity check for constant propagation. The add instruction ; should be eliminated. diff --git a/llvm/test/Transforms/SCCP/select.ll b/llvm/test/Transforms/SCCP/select.ll --- a/llvm/test/Transforms/SCCP/select.ll +++ b/llvm/test/Transforms/SCCP/select.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define i32 @test1(i1 %C) { ; CHECK-LABEL: define i32 @test1( diff --git a/llvm/test/Transforms/SCCP/solve-after-each-resolving-undefs-for-function.ll b/llvm/test/Transforms/SCCP/solve-after-each-resolving-undefs-for-function.ll --- a/llvm/test/Transforms/SCCP/solve-after-each-resolving-undefs-for-function.ll +++ b/llvm/test/Transforms/SCCP/solve-after-each-resolving-undefs-for-function.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; CHECK-LABEL: @testf( ; CHECK: ret i32 undef diff --git a/llvm/test/Transforms/SCCP/struct-arg-resolve-undefs.ll b/llvm/test/Transforms/SCCP/struct-arg-resolve-undefs.ll --- a/llvm/test/Transforms/SCCP/struct-arg-resolve-undefs.ll +++ b/llvm/test/Transforms/SCCP/struct-arg-resolve-undefs.ll @@ -1,4 +1,4 @@ -; RUN: opt -ipsccp -S %s | FileCheck %s +; RUN: opt -passes=ipsccp -S %s | FileCheck %s %struct.S = type { i32 } diff --git a/llvm/test/Transforms/SCCP/switch-constantfold-crash.ll b/llvm/test/Transforms/SCCP/switch-constantfold-crash.ll --- a/llvm/test/Transforms/SCCP/switch-constantfold-crash.ll +++ b/llvm/test/Transforms/SCCP/switch-constantfold-crash.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp < %s -S | FileCheck %s ; RUN: opt -passes=ipsccp < %s -S | FileCheck %s define void @barney() { diff --git a/llvm/test/Transforms/SCCP/switch-multiple-undef.ll b/llvm/test/Transforms/SCCP/switch-multiple-undef.ll --- a/llvm/test/Transforms/SCCP/switch-multiple-undef.ll +++ b/llvm/test/Transforms/SCCP/switch-multiple-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s declare void @foo() declare void @goo() diff --git a/llvm/test/Transforms/SCCP/switch-undef-constantfoldterminator.ll b/llvm/test/Transforms/SCCP/switch-undef-constantfoldterminator.ll --- a/llvm/test/Transforms/SCCP/switch-undef-constantfoldterminator.ll +++ b/llvm/test/Transforms/SCCP/switch-undef-constantfoldterminator.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -ipsccp -S | FileCheck %s +; RUN: opt < %s -passes=ipsccp -S | FileCheck %s ; This test case used to end up like this: ; diff --git a/llvm/test/Transforms/SCCP/switch.ll b/llvm/test/Transforms/SCCP/switch.ll --- a/llvm/test/Transforms/SCCP/switch.ll +++ b/llvm/test/Transforms/SCCP/switch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -ipsccp < %s | FileCheck %s +; RUN: opt -S -passes=ipsccp < %s | FileCheck %s ; Make sure we always consider the default edge executable for a switch ; with no cases. diff --git a/llvm/test/Transforms/SCCP/thread_local_acs.ll b/llvm/test/Transforms/SCCP/thread_local_acs.ll --- a/llvm/test/Transforms/SCCP/thread_local_acs.ll +++ b/llvm/test/Transforms/SCCP/thread_local_acs.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -ipsccp -S < %s | FileCheck %s +; RUN: opt -passes=ipsccp -S < %s | FileCheck %s ; ; #include ; thread_local int gtl = 0; diff --git a/llvm/test/Transforms/SCCP/ub-shift.ll b/llvm/test/Transforms/SCCP/ub-shift.ll --- a/llvm/test/Transforms/SCCP/ub-shift.ll +++ b/llvm/test/Transforms/SCCP/ub-shift.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -sccp -S | FileCheck %s +; RUN: opt < %s -passes=sccp -S | FileCheck %s define void @shift_undef_64(i64* %p) { ; CHECK-LABEL: @shift_undef_64( diff --git a/llvm/test/Transforms/SCCP/ubsan_overflow.ll b/llvm/test/Transforms/SCCP/ubsan_overflow.ll --- a/llvm/test/Transforms/SCCP/ubsan_overflow.ll +++ b/llvm/test/Transforms/SCCP/ubsan_overflow.ll @@ -1,4 +1,4 @@ -; RUN: opt -sccp -S %s | FileCheck %s +; RUN: opt -passes=sccp -S %s | FileCheck %s @0 = private unnamed_addr constant [16 x i8] c"\01\00\00\00\01\01\00\00\01\01\01\00\01\01\01\01" diff --git a/llvm/test/Transforms/SCCP/undef-resolve.ll b/llvm/test/Transforms/SCCP/undef-resolve.ll --- a/llvm/test/Transforms/SCCP/undef-resolve.ll +++ b/llvm/test/Transforms/SCCP/undef-resolve.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -sccp -S < %s | FileCheck %s +; RUN: opt -passes=sccp -S < %s | FileCheck %s ; PR6940 diff --git a/llvm/test/Transforms/SCCP/user-with-multiple-uses.ll b/llvm/test/Transforms/SCCP/user-with-multiple-uses.ll --- a/llvm/test/Transforms/SCCP/user-with-multiple-uses.ll +++ b/llvm/test/Transforms/SCCP/user-with-multiple-uses.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -ipsccp | FileCheck %s +; RUN: opt < %s -S -passes=ipsccp | FileCheck %s ; PR5596 ; IPSCCP should propagate the 0 argument, eliminate the switch, and propagate diff --git a/llvm/test/Transforms/SCCP/vector-bitcast.ll b/llvm/test/Transforms/SCCP/vector-bitcast.ll --- a/llvm/test/Transforms/SCCP/vector-bitcast.ll +++ b/llvm/test/Transforms/SCCP/vector-bitcast.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -sccp -S < %s | FileCheck %s +; RUN: opt -passes=sccp -S < %s | FileCheck %s 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-f80:128:128-n8:16:32-S128" diff --git a/llvm/test/Transforms/SCCP/widening.ll b/llvm/test/Transforms/SCCP/widening.ll --- a/llvm/test/Transforms/SCCP/widening.ll +++ b/llvm/test/Transforms/SCCP/widening.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt %s -sccp -S | FileCheck --check-prefix=SCCP %s -; RUN: opt %s -ipsccp -S | FileCheck --check-prefix=IPSCCP %s +; RUN: opt %s -passes=sccp -S | FileCheck --check-prefix=SCCP %s +; RUN: opt %s -passes=ipsccp -S | FileCheck --check-prefix=IPSCCP %s ; Test different widening scenarios. diff --git a/llvm/test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll b/llvm/test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll --- a/llvm/test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll +++ b/llvm/test/Transforms/TailCallElim/2010-06-26-MultipleReturnValues.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; PR7328 ; PR7506 define i32 @test1_constants(i32 %x) { diff --git a/llvm/test/Transforms/TailCallElim/EraseBB.ll b/llvm/test/Transforms/TailCallElim/EraseBB.ll --- a/llvm/test/Transforms/TailCallElim/EraseBB.ll +++ b/llvm/test/Transforms/TailCallElim/EraseBB.ll @@ -1,4 +1,4 @@ -; RUN: opt -tailcallelim -verify-dom-info -S < %s 2>&1 | FileCheck %s +; RUN: opt -passes=tailcallelim -verify-dom-info -S < %s 2>&1 | FileCheck %s ; CHECK: add nsw i32 ; CHECK-NEXT: br label diff --git a/llvm/test/Transforms/TailCallElim/accum_recursion.ll b/llvm/test/Transforms/TailCallElim/accum_recursion.ll --- a/llvm/test/Transforms/TailCallElim/accum_recursion.ll +++ b/llvm/test/Transforms/TailCallElim/accum_recursion.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s ; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s define i32 @test1_factorial(i32 %x) { diff --git a/llvm/test/Transforms/TailCallElim/ackermann.ll b/llvm/test/Transforms/TailCallElim/ackermann.ll --- a/llvm/test/Transforms/TailCallElim/ackermann.ll +++ b/llvm/test/Transforms/TailCallElim/ackermann.ll @@ -1,6 +1,6 @@ ; REQUIRES: asserts ; This function contains two tail calls, which should be eliminated -; RUN: opt < %s -tailcallelim -verify-dom-info -stats -disable-output 2>&1 | grep "2 tailcallelim" +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -stats -disable-output 2>&1 | grep "2 tailcallelim" define i32 @Ack(i32 %M.1, i32 %N.1) { entry: diff --git a/llvm/test/Transforms/TailCallElim/basic.ll b/llvm/test/Transforms/TailCallElim/basic.ll --- a/llvm/test/Transforms/TailCallElim/basic.ll +++ b/llvm/test/Transforms/TailCallElim/basic.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s declare void @noarg() declare void @use(i32*) diff --git a/llvm/test/Transforms/TailCallElim/debugloc.ll b/llvm/test/Transforms/TailCallElim/debugloc.ll --- a/llvm/test/Transforms/TailCallElim/debugloc.ll +++ b/llvm/test/Transforms/TailCallElim/debugloc.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -debugify -tailcallelim -S | FileCheck %s +; RUN: opt < %s -passes=debugify,tailcallelim -S | FileCheck %s define void @foo() { entry: diff --git a/llvm/test/Transforms/TailCallElim/deopt-bundle.ll b/llvm/test/Transforms/TailCallElim/deopt-bundle.ll --- a/llvm/test/Transforms/TailCallElim/deopt-bundle.ll +++ b/llvm/test/Transforms/TailCallElim/deopt-bundle.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s define i32 @f_1(i32 %x) { ; CHECK-LABEL: @f_1( diff --git a/llvm/test/Transforms/TailCallElim/dont_reorder_load.ll b/llvm/test/Transforms/TailCallElim/dont_reorder_load.ll --- a/llvm/test/Transforms/TailCallElim/dont_reorder_load.ll +++ b/llvm/test/Transforms/TailCallElim/dont_reorder_load.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | grep call | count 4 +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | grep call | count 4 ; PR4323 ; Several cases where tail call elimination should not move the load above the diff --git a/llvm/test/Transforms/TailCallElim/dup_tail.ll b/llvm/test/Transforms/TailCallElim/dup_tail.ll --- a/llvm/test/Transforms/TailCallElim/dup_tail.ll +++ b/llvm/test/Transforms/TailCallElim/dup_tail.ll @@ -1,6 +1,6 @@ ; REQUIRES: asserts ; Duplicate the return into if.end to enable TCE. -; RUN: opt -tailcallelim -verify-dom-info -stats -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt -passes=tailcallelim -verify-dom-info -stats -disable-output < %s 2>&1 | FileCheck %s ; CHECK: Number of return duplicated diff --git a/llvm/test/Transforms/TailCallElim/inf-recursion.ll b/llvm/test/Transforms/TailCallElim/inf-recursion.ll --- a/llvm/test/Transforms/TailCallElim/inf-recursion.ll +++ b/llvm/test/Transforms/TailCallElim/inf-recursion.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; Don't turn this into an infinite loop, this is probably the implementation ; of fabs and we expect the codegen to lower fabs. diff --git a/llvm/test/Transforms/TailCallElim/notail.ll b/llvm/test/Transforms/TailCallElim/notail.ll --- a/llvm/test/Transforms/TailCallElim/notail.ll +++ b/llvm/test/Transforms/TailCallElim/notail.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; CHECK: tail call void @callee0() ; CHECK: notail call void @callee1() diff --git a/llvm/test/Transforms/TailCallElim/reorder_load.ll b/llvm/test/Transforms/TailCallElim/reorder_load.ll --- a/llvm/test/Transforms/TailCallElim/reorder_load.ll +++ b/llvm/test/Transforms/TailCallElim/reorder_load.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; PR4323 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/TailCallElim/setjmp.ll b/llvm/test/Transforms/TailCallElim/setjmp.ll --- a/llvm/test/Transforms/TailCallElim/setjmp.ll +++ b/llvm/test/Transforms/TailCallElim/setjmp.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; Test that we don't tail call in a functions that calls returns_twice ; functions. diff --git a/llvm/test/Transforms/TailCallElim/tre-byval-parameter-2.ll b/llvm/test/Transforms/TailCallElim/tre-byval-parameter-2.ll --- a/llvm/test/Transforms/TailCallElim/tre-byval-parameter-2.ll +++ b/llvm/test/Transforms/TailCallElim/tre-byval-parameter-2.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; the test was generated from the following C++ source: ; diff --git a/llvm/test/Transforms/TailCallElim/tre-byval-parameter.ll b/llvm/test/Transforms/TailCallElim/tre-byval-parameter.ll --- a/llvm/test/Transforms/TailCallElim/tre-byval-parameter.ll +++ b/llvm/test/Transforms/TailCallElim/tre-byval-parameter.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; the test was generated from the following C++ source: ; diff --git a/llvm/test/Transforms/TailCallElim/tre-multiple-exits.ll b/llvm/test/Transforms/TailCallElim/tre-multiple-exits.ll --- a/llvm/test/Transforms/TailCallElim/tre-multiple-exits.ll +++ b/llvm/test/Transforms/TailCallElim/tre-multiple-exits.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; This test checks that TRE would be done for only one recursive call. ; The test_multiple_exits function has three recursive calls. diff --git a/llvm/test/Transforms/TailCallElim/tre-noncapturing-alloca-calls.ll b/llvm/test/Transforms/TailCallElim/tre-noncapturing-alloca-calls.ll --- a/llvm/test/Transforms/TailCallElim/tre-noncapturing-alloca-calls.ll +++ b/llvm/test/Transforms/TailCallElim/tre-noncapturing-alloca-calls.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -tailcallelim -verify-dom-info -S | FileCheck %s +; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s ; IR for that test was generated from the following C++ source: ; diff --git a/llvm/test/Transforms/Util/PredicateInfo/branch-on-same-cond.ll b/llvm/test/Transforms/Util/PredicateInfo/branch-on-same-cond.ll --- a/llvm/test/Transforms/Util/PredicateInfo/branch-on-same-cond.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/branch-on-same-cond.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -print-predicateinfo < %s 2>&1 >/dev/null | FileCheck %s +; RUN: opt -S -passes=print-predicateinfo < %s 2>&1 >/dev/null | FileCheck %s ; FIXME: RenamedOp should be %cmp or %x in all cases here, ; which is the value used in the condition. diff --git a/llvm/test/Transforms/Util/PredicateInfo/condprop.ll b/llvm/test/Transforms/Util/PredicateInfo/condprop.ll --- a/llvm/test/Transforms/Util/PredicateInfo/condprop.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/condprop.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo -disable-output < %s 2>&1 | FileCheck %s @a = external global i32 ; [#uses=7] diff --git a/llvm/test/Transforms/Util/PredicateInfo/diamond.ll b/llvm/test/Transforms/Util/PredicateInfo/diamond.ll --- a/llvm/test/Transforms/Util/PredicateInfo/diamond.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/diamond.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo < %s 2>&1 | FileCheck %s define i1 @f(i32 %x, i1 %y) { ; CHECK-LABEL: @f( ; CHECK-NEXT: br i1 [[Y:%.*]], label [[BB0:%.*]], label [[BB1:%.*]] diff --git a/llvm/test/Transforms/Util/PredicateInfo/edge.ll b/llvm/test/Transforms/Util/PredicateInfo/edge.ll --- a/llvm/test/Transforms/Util/PredicateInfo/edge.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/edge.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo < %s 2>&1 | FileCheck %s define i32 @f1(i32 %x) { ; CHECK-LABEL: @f1( diff --git a/llvm/test/Transforms/Util/PredicateInfo/ordering.ll b/llvm/test/Transforms/Util/PredicateInfo/ordering.ll --- a/llvm/test/Transforms/Util/PredicateInfo/ordering.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/ordering.ll @@ -1,4 +1,4 @@ -; REQUIRES: assert +; REQUIRES: assert-but-this-is-misspelled-and-should-say-asserts-but-then-the-test-case-will-fail ; RUN: opt -passes=print-predicateinfo -debug < %s 2>&1 | FileCheck %s declare void @use(i32) diff --git a/llvm/test/Transforms/Util/PredicateInfo/pr33456.ll b/llvm/test/Transforms/Util/PredicateInfo/pr33456.ll --- a/llvm/test/Transforms/Util/PredicateInfo/pr33456.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/pr33456.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo < %s 2>&1 | FileCheck %s ; Don't insert predicate info for conditions with a single target. @a = global i32 1, align 4 @d = common global i32 0, align 4 diff --git a/llvm/test/Transforms/Util/PredicateInfo/pr33457.ll b/llvm/test/Transforms/Util/PredicateInfo/pr33457.ll --- a/llvm/test/Transforms/Util/PredicateInfo/pr33457.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/pr33457.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo < %s 2>&1 | FileCheck %s ; Don't insert predicate info for conditions with a single target. @a = global i32 6, align 4 @c = global i32 -1, align 4 diff --git a/llvm/test/Transforms/Util/PredicateInfo/testandor.ll b/llvm/test/Transforms/Util/PredicateInfo/testandor.ll --- a/llvm/test/Transforms/Util/PredicateInfo/testandor.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/testandor.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -print-predicateinfo -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo -disable-output < %s 2>&1 | FileCheck %s declare void @foo(i1) declare void @bar(i32) diff --git a/llvm/test/Transforms/Util/PredicateInfo/unnamed-types.ll b/llvm/test/Transforms/Util/PredicateInfo/unnamed-types.ll --- a/llvm/test/Transforms/Util/PredicateInfo/unnamed-types.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/unnamed-types.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -print-predicateinfo 2>&1 | FileCheck %s +; RUN: opt < %s -passes=print-predicateinfo 2>&1 | FileCheck %s %1 = type opaque %0 = type opaque diff --git a/llvm/test/Transforms/Util/PredicateInfo/unreachable.ll b/llvm/test/Transforms/Util/PredicateInfo/unreachable.ll --- a/llvm/test/Transforms/Util/PredicateInfo/unreachable.ll +++ b/llvm/test/Transforms/Util/PredicateInfo/unreachable.ll @@ -1,4 +1,4 @@ -; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s +; RUN: opt -passes=print-predicateinfo < %s 2>&1 | FileCheck %s declare void @foo() declare void @llvm.assume(i1)