diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/gep-constanfolding-error.ll b/llvm/test/Transforms/InstSimplify/ConstProp/gep-constanfolding-error.ll --- a/llvm/test/Transforms/InstSimplify/ConstProp/gep-constanfolding-error.ll +++ b/llvm/test/Transforms/InstSimplify/ConstProp/gep-constanfolding-error.ll @@ -1,5 +1,5 @@ ; RUN: opt -gvn -S -o - %s | FileCheck %s -; RUN: opt -newgvn -S -o - %s | FileCheck %s +; RUN: opt -passes=newgvn -S -o - %s | FileCheck %s ; Test that the constantfolding getelementptr computation results in ; j[5][4][1] (j+239) ; and not [1][4][4][1] (#449) which is an incorrect out-of-range error diff --git a/llvm/test/Transforms/NewGVN/2007-07-25-DominatedLoop.ll b/llvm/test/Transforms/NewGVN/2007-07-25-DominatedLoop.ll --- a/llvm/test/Transforms/NewGVN/2007-07-25-DominatedLoop.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-25-DominatedLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis %struct.PerlInterpreter = type { i8 } @PL_sv_count = external global i32 ; [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2007-07-25-Loop.ll b/llvm/test/Transforms/NewGVN/2007-07-25-Loop.ll --- a/llvm/test/Transforms/NewGVN/2007-07-25-Loop.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-25-Loop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis %struct.s_segment_inf = type { float, i32, i16, i16, float, float, i32, float, float } diff --git a/llvm/test/Transforms/NewGVN/2007-07-25-NestedLoop.ll b/llvm/test/Transforms/NewGVN/2007-07-25-NestedLoop.ll --- a/llvm/test/Transforms/NewGVN/2007-07-25-NestedLoop.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-25-NestedLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis %struct.TypHeader = type { i32, %struct.TypHeader**, [3 x i8], i8 } diff --git a/llvm/test/Transforms/NewGVN/2007-07-25-SinglePredecessor.ll b/llvm/test/Transforms/NewGVN/2007-07-25-SinglePredecessor.ll --- a/llvm/test/Transforms/NewGVN/2007-07-25-SinglePredecessor.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-25-SinglePredecessor.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis %struct.ggBRDF = type { i32 (...)** } %struct.ggBox3 = type { %struct.ggPoint3, %struct.ggPoint3 } diff --git a/llvm/test/Transforms/NewGVN/2007-07-26-NonRedundant.ll b/llvm/test/Transforms/NewGVN/2007-07-26-NonRedundant.ll --- a/llvm/test/Transforms/NewGVN/2007-07-26-NonRedundant.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-26-NonRedundant.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis @bsLive = external global i32 ; [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2007-07-26-PhiErasure.ll b/llvm/test/Transforms/NewGVN/2007-07-26-PhiErasure.ll --- a/llvm/test/Transforms/NewGVN/2007-07-26-PhiErasure.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-26-PhiErasure.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s -; RUN: opt < %s -newgvn --enable-knowledge-retention -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn --enable-knowledge-retention -S | FileCheck %s %struct..0anon = type { i32 } %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 } diff --git a/llvm/test/Transforms/NewGVN/2007-07-30-PredIDom.ll b/llvm/test/Transforms/NewGVN/2007-07-30-PredIDom.ll --- a/llvm/test/Transforms/NewGVN/2007-07-30-PredIDom.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-30-PredIDom.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis %"struct.Block::$_16" = type { i32 } %struct.Exp = type { %struct.Exp_*, i32, i32, i32, %struct.Exp*, %struct.Exp*, %"struct.Exp::$_10", %"struct.Block::$_16", %"struct.Exp::$_12" } diff --git a/llvm/test/Transforms/NewGVN/2008-02-12-UndefLoad-xfail.ll b/llvm/test/Transforms/NewGVN/2008-02-12-UndefLoad-xfail.ll --- a/llvm/test/Transforms/NewGVN/2008-02-12-UndefLoad-xfail.ll +++ b/llvm/test/Transforms/NewGVN/2008-02-12-UndefLoad-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; PR1996 %struct.anon = type { i32, i8, i8, i8, i8 } diff --git a/llvm/test/Transforms/NewGVN/2008-02-13-NewPHI.ll b/llvm/test/Transforms/NewGVN/2008-02-13-NewPHI.ll --- a/llvm/test/Transforms/NewGVN/2008-02-13-NewPHI.ll +++ b/llvm/test/Transforms/NewGVN/2008-02-13-NewPHI.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn +; RUN: opt < %s -passes=newgvn ; PR2032 define i32 @sscal(i32 %n, double %sa1, float* %sx, i32 %incx) { diff --git a/llvm/test/Transforms/NewGVN/2008-12-09-SelfRemove.ll b/llvm/test/Transforms/NewGVN/2008-12-09-SelfRemove.ll --- a/llvm/test/Transforms/NewGVN/2008-12-09-SelfRemove.ll +++ b/llvm/test/Transforms/NewGVN/2008-12-09-SelfRemove.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -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-darwin9.5" diff --git a/llvm/test/Transforms/NewGVN/2008-12-12-RLE-Crash.ll b/llvm/test/Transforms/NewGVN/2008-12-12-RLE-Crash.ll --- a/llvm/test/Transforms/NewGVN/2008-12-12-RLE-Crash.ll +++ b/llvm/test/Transforms/NewGVN/2008-12-12-RLE-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | 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" diff --git a/llvm/test/Transforms/NewGVN/2008-12-14-rle-reanalyze.ll b/llvm/test/Transforms/NewGVN/2008-12-14-rle-reanalyze.ll --- a/llvm/test/Transforms/NewGVN/2008-12-14-rle-reanalyze.ll +++ b/llvm/test/Transforms/NewGVN/2008-12-14-rle-reanalyze.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | 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" @sort_value = external global [256 x i32], align 32 ; <[256 x i32]*> [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2008-12-15-CacheVisited.ll b/llvm/test/Transforms/NewGVN/2008-12-15-CacheVisited.ll --- a/llvm/test/Transforms/NewGVN/2008-12-15-CacheVisited.ll +++ b/llvm/test/Transforms/NewGVN/2008-12-15-CacheVisited.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis ; Cached results must be added to and verified against the visited sets. ; PR3217 diff --git a/llvm/test/Transforms/NewGVN/2009-01-21-SortInvalidation.ll b/llvm/test/Transforms/NewGVN/2009-01-21-SortInvalidation.ll --- a/llvm/test/Transforms/NewGVN/2009-01-21-SortInvalidation.ll +++ b/llvm/test/Transforms/NewGVN/2009-01-21-SortInvalidation.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis ; PR3358 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/NewGVN/2009-01-22-SortInvalidation.ll b/llvm/test/Transforms/NewGVN/2009-01-22-SortInvalidation.ll --- a/llvm/test/Transforms/NewGVN/2009-01-22-SortInvalidation.ll +++ b/llvm/test/Transforms/NewGVN/2009-01-22-SortInvalidation.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | 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" diff --git a/llvm/test/Transforms/NewGVN/2009-03-10-PREOnVoid.ll b/llvm/test/Transforms/NewGVN/2009-03-10-PREOnVoid.ll --- a/llvm/test/Transforms/NewGVN/2009-03-10-PREOnVoid.ll +++ b/llvm/test/Transforms/NewGVN/2009-03-10-PREOnVoid.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn -disable-output +; RUN: opt < %s -passes=newgvn -disable-output ; PR3775 ; ModuleID = 'bugpoint-reduced-simplified.bc' diff --git a/llvm/test/Transforms/NewGVN/2009-07-13-MemDepSortFail.ll b/llvm/test/Transforms/NewGVN/2009-07-13-MemDepSortFail.ll --- a/llvm/test/Transforms/NewGVN/2009-07-13-MemDepSortFail.ll +++ b/llvm/test/Transforms/NewGVN/2009-07-13-MemDepSortFail.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn | llvm-dis +; RUN: opt < %s -passes=newgvn | llvm-dis ; PR4256 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:32:32" target triple = "i386-pc-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/2009-11-12-MemDepMallocBitCast.ll b/llvm/test/Transforms/NewGVN/2009-11-12-MemDepMallocBitCast.ll --- a/llvm/test/Transforms/NewGVN/2009-11-12-MemDepMallocBitCast.ll +++ b/llvm/test/Transforms/NewGVN/2009-11-12-MemDepMallocBitCast.ll @@ -1,6 +1,6 @@ ; Test to make sure malloc's bitcast does not block detection of a store ; to aliased memory; GVN should not optimize away the load in this program. -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s define i64 @test() { %1 = tail call i8* @malloc(i64 mul (i64 4, i64 ptrtoint (i64* getelementptr (i64, i64* null, i64 1) to i64))) ; [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2010-05-08-OneBit.ll b/llvm/test/Transforms/NewGVN/2010-05-08-OneBit.ll --- a/llvm/test/Transforms/NewGVN/2010-05-08-OneBit.ll +++ b/llvm/test/Transforms/NewGVN/2010-05-08-OneBit.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn +; RUN: opt < %s -passes=newgvn ; PR7052 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" diff --git a/llvm/test/Transforms/NewGVN/2011-04-27-phioperands.ll b/llvm/test/Transforms/NewGVN/2011-04-27-phioperands.ll --- a/llvm/test/Transforms/NewGVN/2011-04-27-phioperands.ll +++ b/llvm/test/Transforms/NewGVN/2011-04-27-phioperands.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -disable-output < %s +; RUN: opt -passes=newgvn -disable-output < %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-f128:128:128-n8:16:32:64" diff --git a/llvm/test/Transforms/NewGVN/2011-07-07-MatchIntrinsicExtract.ll b/llvm/test/Transforms/NewGVN/2011-07-07-MatchIntrinsicExtract.ll --- a/llvm/test/Transforms/NewGVN/2011-07-07-MatchIntrinsicExtract.ll +++ b/llvm/test/Transforms/NewGVN/2011-07-07-MatchIntrinsicExtract.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; %0 = type { i64, i1 } diff --git a/llvm/test/Transforms/NewGVN/2012-05-22-PreCrash.ll b/llvm/test/Transforms/NewGVN/2012-05-22-PreCrash.ll --- a/llvm/test/Transforms/NewGVN/2012-05-22-PreCrash.ll +++ b/llvm/test/Transforms/NewGVN/2012-05-22-PreCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn +; RUN: opt < %s -passes=newgvn ; PR12858 define void @fn5(i16 signext %p1, i8 signext %p2) nounwind uwtable { diff --git a/llvm/test/Transforms/NewGVN/addrspacecast.ll b/llvm/test/Transforms/NewGVN/addrspacecast.ll --- a/llvm/test/Transforms/NewGVN/addrspacecast.ll +++ b/llvm/test/Transforms/NewGVN/addrspacecast.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -newgvn < %s | FileCheck %s +; RUN: opt -S -passes=newgvn < %s | FileCheck %s define i32 addrspace(1)* @addrspacecast(i32* %ptr) { ; CHECK-LABEL: @addrspacecast( diff --git a/llvm/test/Transforms/NewGVN/assume-equal-xfail.ll b/llvm/test/Transforms/NewGVN/assume-equal-xfail.ll --- a/llvm/test/Transforms/NewGVN/assume-equal-xfail.ll +++ b/llvm/test/Transforms/NewGVN/assume-equal-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s %struct.A = type { i32 (...)** } @_ZTV1A = available_externally unnamed_addr constant [4 x i8*] [i8* null, i8* bitcast (i8** @_ZTI1A to i8*), i8* bitcast (i32 (%struct.A*)* @_ZN1A3fooEv to i8*), i8* bitcast (i32 (%struct.A*)* @_ZN1A3barEv to i8*)], align 8 diff --git a/llvm/test/Transforms/NewGVN/assume-equal.ll b/llvm/test/Transforms/NewGVN/assume-equal.ll --- a/llvm/test/Transforms/NewGVN/assume-equal.ll +++ b/llvm/test/Transforms/NewGVN/assume-equal.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s define float @_Z1if(float %p) { ; CHECK-LABEL: @_Z1if( diff --git a/llvm/test/Transforms/NewGVN/assumes.ll b/llvm/test/Transforms/NewGVN/assumes.ll --- a/llvm/test/Transforms/NewGVN/assumes.ll +++ b/llvm/test/Transforms/NewGVN/assumes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s define i32 @test1(i32 %arg) { ; CHECK-LABEL: @test1( diff --git a/llvm/test/Transforms/NewGVN/basic.ll b/llvm/test/Transforms/NewGVN/basic.ll --- a/llvm/test/Transforms/NewGVN/basic.ll +++ b/llvm/test/Transforms/NewGVN/basic.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s define i32 @main() { ; CHECK-LABEL: @main( diff --git a/llvm/test/Transforms/NewGVN/big-endian.ll b/llvm/test/Transforms/NewGVN/big-endian.ll --- a/llvm/test/Transforms/NewGVN/big-endian.ll +++ b/llvm/test/Transforms/NewGVN/big-endian.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/bitcast-of-call.ll b/llvm/test/Transforms/NewGVN/bitcast-of-call.ll --- a/llvm/test/Transforms/NewGVN/bitcast-of-call.ll +++ b/llvm/test/Transforms/NewGVN/bitcast-of-call.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; PR2213 define i32* @f(i8* %x) { diff --git a/llvm/test/Transforms/NewGVN/br-identical.ll b/llvm/test/Transforms/NewGVN/br-identical.ll --- a/llvm/test/Transforms/NewGVN/br-identical.ll +++ b/llvm/test/Transforms/NewGVN/br-identical.ll @@ -1,4 +1,3 @@ -; RUN: opt -newgvn -S -o - %s | FileCheck %s ; RUN: opt -passes=newgvn -S -o - %s | FileCheck %s ; If a branch has two identical successors, we cannot declare either dead. diff --git a/llvm/test/Transforms/NewGVN/commute.ll b/llvm/test/Transforms/NewGVN/commute.ll --- a/llvm/test/Transforms/NewGVN/commute.ll +++ b/llvm/test/Transforms/NewGVN/commute.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s declare void @use(i32, i32) diff --git a/llvm/test/Transforms/NewGVN/compare-condition-changes.ll b/llvm/test/Transforms/NewGVN/compare-condition-changes.ll --- a/llvm/test/Transforms/NewGVN/compare-condition-changes.ll +++ b/llvm/test/Transforms/NewGVN/compare-condition-changes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Test cases to make sure the blocks are properly marked as executable, if the ; state of the branch condition changes. diff --git a/llvm/test/Transforms/NewGVN/crash.ll b/llvm/test/Transforms/NewGVN/crash.ll --- a/llvm/test/Transforms/NewGVN/crash.ll +++ b/llvm/test/Transforms/NewGVN/crash.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -disable-output < %s +; RUN: opt -passes=newgvn -disable-output < %s ; PR5631 diff --git a/llvm/test/Transforms/NewGVN/dbg-redundant-load.ll b/llvm/test/Transforms/NewGVN/dbg-redundant-load.ll --- a/llvm/test/Transforms/NewGVN/dbg-redundant-load.ll +++ b/llvm/test/Transforms/NewGVN/dbg-redundant-load.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s ; Check that the redundant load from %if.then is removed. ; Also, check that the debug location associated to load %0 still refers to diff --git a/llvm/test/Transforms/NewGVN/debugloc-xfail.ll b/llvm/test/Transforms/NewGVN/debugloc-xfail.ll --- a/llvm/test/Transforms/NewGVN/debugloc-xfail.ll +++ b/llvm/test/Transforms/NewGVN/debugloc-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; CHECK: {{^}}for.body: ; CHECK-NEXT: [[VREG1:%[^ ]+]] = phi{{.*}}[[VREG2:%[^ ]+]],{{.*}}%.sink, ; CHECK-NOT: !dbg diff --git a/llvm/test/Transforms/NewGVN/edge.ll b/llvm/test/Transforms/NewGVN/edge.ll --- a/llvm/test/Transforms/NewGVN/edge.ll +++ b/llvm/test/Transforms/NewGVN/edge.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s define i32 @f1(i32 %x) { ; CHECK-LABEL: define i32 @f1( diff --git a/llvm/test/Transforms/NewGVN/eliminate-ssacopy.ll b/llvm/test/Transforms/NewGVN/eliminate-ssacopy.ll --- a/llvm/test/Transforms/NewGVN/eliminate-ssacopy.ll +++ b/llvm/test/Transforms/NewGVN/eliminate-ssacopy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s ; Make sure the created ssa copies are cleaned up. See PR38804. diff --git a/llvm/test/Transforms/NewGVN/flags-simplify.ll b/llvm/test/Transforms/NewGVN/flags-simplify.ll --- a/llvm/test/Transforms/NewGVN/flags-simplify.ll +++ b/llvm/test/Transforms/NewGVN/flags-simplify.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -newgvn < %s | FileCheck %s +; RUN: opt -S -passes=newgvn < %s | FileCheck %s ; Check that we do not use keywords only available for some members of a ; congruence class when simplifying. diff --git a/llvm/test/Transforms/NewGVN/flags.ll b/llvm/test/Transforms/NewGVN/flags.ll --- a/llvm/test/Transforms/NewGVN/flags.ll +++ b/llvm/test/Transforms/NewGVN/flags.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/NewGVN/fold-const-expr.ll b/llvm/test/Transforms/NewGVN/fold-const-expr.ll --- a/llvm/test/Transforms/NewGVN/fold-const-expr.ll +++ b/llvm/test/Transforms/NewGVN/fold-const-expr.ll @@ -3,7 +3,7 @@ ; expressions. As a result, the compilation never fisished. ; This test checks that we are folding constant expression ; PR 28418 -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s %2 = type { i32, i32, i32, i32, i32 } define i32 @_Z16vector3util_mainv(i32 %x, i32 %y) { %tmp1 = alloca %2, align 4 diff --git a/llvm/test/Transforms/NewGVN/fpmath.ll b/llvm/test/Transforms/NewGVN/fpmath.ll --- a/llvm/test/Transforms/NewGVN/fpmath.ll +++ b/llvm/test/Transforms/NewGVN/fpmath.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s define double @test1(double %x, double %y) { ; CHECK: @test1(double %x, double %y) diff --git a/llvm/test/Transforms/NewGVN/int_sideeffect.ll b/llvm/test/Transforms/NewGVN/int_sideeffect.ll --- a/llvm/test/Transforms/NewGVN/int_sideeffect.ll +++ b/llvm/test/Transforms/NewGVN/int_sideeffect.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -newgvn | FileCheck %s +; RUN: opt -S < %s -passes=newgvn | FileCheck %s declare void @llvm.sideeffect() diff --git a/llvm/test/Transforms/NewGVN/invariant.start.ll b/llvm/test/Transforms/NewGVN/invariant.start.ll --- a/llvm/test/Transforms/NewGVN/invariant.start.ll +++ b/llvm/test/Transforms/NewGVN/invariant.start.ll @@ -1,5 +1,5 @@ ; Test to make sure llvm.invariant.start calls are not treated as clobbers. -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s declare {}* @llvm.invariant.start.p0i8(i64, i8* nocapture) nounwind readonly diff --git a/llvm/test/Transforms/NewGVN/load-from-unreachable-predecessor.ll b/llvm/test/Transforms/NewGVN/load-from-unreachable-predecessor.ll --- a/llvm/test/Transforms/NewGVN/load-from-unreachable-predecessor.ll +++ b/llvm/test/Transforms/NewGVN/load-from-unreachable-predecessor.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s ; Check that an unreachable predecessor to a PHI node doesn't cause a crash. ; PR21625. diff --git a/llvm/test/Transforms/NewGVN/metadata-nonnull.ll b/llvm/test/Transforms/NewGVN/metadata-nonnull.ll --- a/llvm/test/Transforms/NewGVN/metadata-nonnull.ll +++ b/llvm/test/Transforms/NewGVN/metadata-nonnull.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -newgvn -S | FileCheck %s +; RUN: opt %s -passes=newgvn -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/NewGVN/metadata-simplify.ll b/llvm/test/Transforms/NewGVN/metadata-simplify.ll --- a/llvm/test/Transforms/NewGVN/metadata-simplify.ll +++ b/llvm/test/Transforms/NewGVN/metadata-simplify.ll @@ -3,7 +3,7 @@ ; The tests in this file check that we do not simplify based on metadata that is ; not available on all code paths. -; RUN: opt < %s -S -newgvn | FileCheck %s +; RUN: opt < %s -S -passes=newgvn | FileCheck %s define i1 @test1(i32** %arg, i1 %arg2) { ; CHECK-LABEL: @test1( diff --git a/llvm/test/Transforms/NewGVN/non-integral-pointers.ll b/llvm/test/Transforms/NewGVN/non-integral-pointers.ll --- a/llvm/test/Transforms/NewGVN/non-integral-pointers.ll +++ b/llvm/test/Transforms/NewGVN/non-integral-pointers.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:4" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/opt-remarks-xfail.ll b/llvm/test/Transforms/NewGVN/opt-remarks-xfail.ll --- a/llvm/test/Transforms/NewGVN/opt-remarks-xfail.ll +++ b/llvm/test/Transforms/NewGVN/opt-remarks-xfail.ll @@ -1,7 +1,4 @@ ; XFAIL: * -; RUN: opt < %s -newgvn -o /dev/null -pass-remarks-output=%t -S -pass-remarks=gvn \ -; RUN: 2>&1 | FileCheck %s -; RUN: cat %t | FileCheck -check-prefix=YAML %s ; RUN: opt < %s -passes=newgvn -o /dev/null -pass-remarks-output=%t -S -pass-remarks=gvn \ ; RUN: 2>&1 | FileCheck %s ; RUN: cat %t | FileCheck -check-prefix=YAML %s diff --git a/llvm/test/Transforms/NewGVN/phi-edge-handling.ll b/llvm/test/Transforms/NewGVN/phi-edge-handling.ll --- a/llvm/test/Transforms/NewGVN/phi-edge-handling.ll +++ b/llvm/test/Transforms/NewGVN/phi-edge-handling.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ;; Block 6 is reachable, but edge 6->4 is not diff --git a/llvm/test/Transforms/NewGVN/phi-of-ops-move-block.ll b/llvm/test/Transforms/NewGVN/phi-of-ops-move-block.ll --- a/llvm/test/Transforms/NewGVN/phi-of-ops-move-block.ll +++ b/llvm/test/Transforms/NewGVN/phi-of-ops-move-block.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s @g_20 = external global i32, align 4 diff --git a/llvm/test/Transforms/NewGVN/phi-of-ops-simplification-dependencies.ll b/llvm/test/Transforms/NewGVN/phi-of-ops-simplification-dependencies.ll --- a/llvm/test/Transforms/NewGVN/phi-of-ops-simplification-dependencies.ll +++ b/llvm/test/Transforms/NewGVN/phi-of-ops-simplification-dependencies.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s declare void @use.i16(i16*) declare void @use.i32(i32) diff --git a/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll b/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll --- a/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll +++ b/llvm/test/Transforms/NewGVN/phi-of-ops-simplified-to-existing-value-then-changes-again.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Test cases where initially a PHI-of-ops can be simplified to an existing ; value, but later we need to revisit the decision because the leader of diff --git a/llvm/test/Transforms/NewGVN/pr12979.ll b/llvm/test/Transforms/NewGVN/pr12979.ll --- a/llvm/test/Transforms/NewGVN/pr12979.ll +++ b/llvm/test/Transforms/NewGVN/pr12979.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s define i32 @test1(i32 %x, i32 %y) { ; CHECK: @test1(i32 %x, i32 %y) diff --git a/llvm/test/Transforms/NewGVN/pr14166-xfail.ll b/llvm/test/Transforms/NewGVN/pr14166-xfail.ll --- a/llvm/test/Transforms/NewGVN/pr14166-xfail.ll +++ b/llvm/test/Transforms/NewGVN/pr14166-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt -disable-basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -disable-basic-aa -passes=newgvn -S < %s | FileCheck %s ; NewGVN fails this due to missing load coercion target datalayout = "e-p:32:32:32" target triple = "i386-pc-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/pr17732.ll b/llvm/test/Transforms/NewGVN/pr17732.ll --- a/llvm/test/Transforms/NewGVN/pr17732.ll +++ b/llvm/test/Transforms/NewGVN/pr17732.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S -o - < %s | FileCheck %s +; RUN: opt -passes=newgvn -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/NewGVN/pr25440.ll b/llvm/test/Transforms/NewGVN/pr25440.ll --- a/llvm/test/Transforms/NewGVN/pr25440.ll +++ b/llvm/test/Transforms/NewGVN/pr25440.ll @@ -1,4 +1,4 @@ -;RUN: opt -newgvn -S < %s | FileCheck %s +;RUN: opt -passes=newgvn -S < %s | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64" target triple = "thumbv7--linux-gnueabi" diff --git a/llvm/test/Transforms/NewGVN/pr28562.ll b/llvm/test/Transforms/NewGVN/pr28562.ll --- a/llvm/test/Transforms/NewGVN/pr28562.ll +++ b/llvm/test/Transforms/NewGVN/pr28562.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -newgvn < %s | FileCheck %s +; RUN: opt -S -passes=newgvn < %s | FileCheck %s define i32* @test1(i32* %a) { %x1 = getelementptr inbounds i32, i32* %a, i32 10 %x2 = getelementptr i32, i32* %a, i32 10 diff --git a/llvm/test/Transforms/NewGVN/pr31758.ll b/llvm/test/Transforms/NewGVN/pr31758.ll --- a/llvm/test/Transforms/NewGVN/pr31758.ll +++ b/llvm/test/Transforms/NewGVN/pr31758.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn %s -S -o - | FileCheck %s +; RUN: opt -passes=newgvn %s -S -o - | FileCheck %s %struct.dipsy = type {} %struct.fluttershy = type { %struct.dipsy* } diff --git a/llvm/test/Transforms/NewGVN/pr32403.ll b/llvm/test/Transforms/NewGVN/pr32403.ll --- a/llvm/test/Transforms/NewGVN/pr32403.ll +++ b/llvm/test/Transforms/NewGVN/pr32403.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -;RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.12.0" diff --git a/llvm/test/Transforms/NewGVN/pr32607.ll b/llvm/test/Transforms/NewGVN/pr32607.ll --- a/llvm/test/Transforms/NewGVN/pr32607.ll +++ b/llvm/test/Transforms/NewGVN/pr32607.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn %s -S -o - | FileCheck %s +; RUN: opt -passes=newgvn %s -S -o - | FileCheck %s define hidden void @foo() { ; CHECK-LABEL: @foo( ; CHECK-NEXT: top: diff --git a/llvm/test/Transforms/NewGVN/pr32836.ll b/llvm/test/Transforms/NewGVN/pr32836.ll --- a/llvm/test/Transforms/NewGVN/pr32836.ll +++ b/llvm/test/Transforms/NewGVN/pr32836.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s %struct.anon = type { i32 } @b = external global %struct.anon diff --git a/llvm/test/Transforms/NewGVN/pr32838.ll b/llvm/test/Transforms/NewGVN/pr32838.ll --- a/llvm/test/Transforms/NewGVN/pr32838.ll +++ b/llvm/test/Transforms/NewGVN/pr32838.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -;RUN: opt -newgvn -S < %s | FileCheck %s +;RUN: opt -passes=newgvn -S < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.12.0" ;; Ensure we don't infinite loop when all phi arguments are really unreachable or self-defined diff --git a/llvm/test/Transforms/NewGVN/pr32845.ll b/llvm/test/Transforms/NewGVN/pr32845.ll --- a/llvm/test/Transforms/NewGVN/pr32845.ll +++ b/llvm/test/Transforms/NewGVN/pr32845.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn %s -S | FileCheck %s +; RUN: opt -passes=newgvn %s -S | FileCheck %s @b = external global i32, align 4 @a = external global i32, align 4 diff --git a/llvm/test/Transforms/NewGVN/pr32852.ll b/llvm/test/Transforms/NewGVN/pr32852.ll --- a/llvm/test/Transforms/NewGVN/pr32852.ll +++ b/llvm/test/Transforms/NewGVN/pr32852.ll @@ -1,6 +1,6 @@ ; Make sure GVN doesn't incorrectly think the branch terminating ; bb2 has a constant condition. -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s @a = common global i32 0 @patatino = private unnamed_addr constant [3 x i8] c"0\0A\00" diff --git a/llvm/test/Transforms/NewGVN/pr32897.ll b/llvm/test/Transforms/NewGVN/pr32897.ll --- a/llvm/test/Transforms/NewGVN/pr32897.ll +++ b/llvm/test/Transforms/NewGVN/pr32897.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s define void @tinkywinky(i64* %b) { ; CHECK-LABEL: @tinkywinky( diff --git a/llvm/test/Transforms/NewGVN/pr32934.ll b/llvm/test/Transforms/NewGVN/pr32934.ll --- a/llvm/test/Transforms/NewGVN/pr32934.ll +++ b/llvm/test/Transforms/NewGVN/pr32934.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s ; CHECK: define void @tinkywinky() { ; CHECK-NEXT: entry: diff --git a/llvm/test/Transforms/NewGVN/pr32945.ll b/llvm/test/Transforms/NewGVN/pr32945.ll --- a/llvm/test/Transforms/NewGVN/pr32945.ll +++ b/llvm/test/Transforms/NewGVN/pr32945.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s ; CHECK-NOT: call i32 @llvm.ssa.copy @d = external global i32 diff --git a/llvm/test/Transforms/NewGVN/pr32952.ll b/llvm/test/Transforms/NewGVN/pr32952.ll --- a/llvm/test/Transforms/NewGVN/pr32952.ll +++ b/llvm/test/Transforms/NewGVN/pr32952.ll @@ -1,6 +1,6 @@ ; PR32952: Don't erroneously consider congruent two phi nodes which ; have the same arguments but different incoming edges. -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s @a = common global i16 0, align 2 @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 diff --git a/llvm/test/Transforms/NewGVN/pr33014.ll b/llvm/test/Transforms/NewGVN/pr33014.ll --- a/llvm/test/Transforms/NewGVN/pr33014.ll +++ b/llvm/test/Transforms/NewGVN/pr33014.ll @@ -1,6 +1,5 @@ ; Make sure we don't end up in an infinite recursion in singleReachablePHIPath(). -; REQUIRES: asserts -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s @c = external global i64, align 8 diff --git a/llvm/test/Transforms/NewGVN/pr33086.ll b/llvm/test/Transforms/NewGVN/pr33086.ll --- a/llvm/test/Transforms/NewGVN/pr33086.ll +++ b/llvm/test/Transforms/NewGVN/pr33086.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; REQUIRES: asserts ; CHECK-LABEL: define void @tinkywinky() { diff --git a/llvm/test/Transforms/NewGVN/pr33116.ll b/llvm/test/Transforms/NewGVN/pr33116.ll --- a/llvm/test/Transforms/NewGVN/pr33116.ll +++ b/llvm/test/Transforms/NewGVN/pr33116.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s @a = external global i32 diff --git a/llvm/test/Transforms/NewGVN/pr33165-distribute-undef.ll b/llvm/test/Transforms/NewGVN/pr33165-distribute-undef.ll --- a/llvm/test/Transforms/NewGVN/pr33165-distribute-undef.ll +++ b/llvm/test/Transforms/NewGVN/pr33165-distribute-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Test for PR33165. diff --git a/llvm/test/Transforms/NewGVN/pr33185.ll b/llvm/test/Transforms/NewGVN/pr33185.ll --- a/llvm/test/Transforms/NewGVN/pr33185.ll +++ b/llvm/test/Transforms/NewGVN/pr33185.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s @a = local_unnamed_addr global i32 9, align 4 @.str4 = private unnamed_addr constant [6 x i8] c"D:%d\0A\00", align 1 diff --git a/llvm/test/Transforms/NewGVN/pr33187.ll b/llvm/test/Transforms/NewGVN/pr33187.ll --- a/llvm/test/Transforms/NewGVN/pr33187.ll +++ b/llvm/test/Transforms/NewGVN/pr33187.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ;; Ensure we don't change after value numbering by accidentally deleting the wrong expression. -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s define void @fn1() local_unnamed_addr #0 { ; CHECK-LABEL: @fn1( ; CHECK-NEXT: entry: diff --git a/llvm/test/Transforms/NewGVN/pr33204.ll b/llvm/test/Transforms/NewGVN/pr33204.ll --- a/llvm/test/Transforms/NewGVN/pr33204.ll +++ b/llvm/test/Transforms/NewGVN/pr33204.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Ensure that loads that bypass memory def-use chains get added as users of the new ; MemoryDef. Otherwise this test will not pass memory verification because the value ; of the load will not be reprocessed until verification. diff --git a/llvm/test/Transforms/NewGVN/pr33305.ll b/llvm/test/Transforms/NewGVN/pr33305.ll --- a/llvm/test/Transforms/NewGVN/pr33305.ll +++ b/llvm/test/Transforms/NewGVN/pr33305.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Ensure we do not incorrect do phi of ops source_filename = "/Users/dannyb/sources/llvm-clean/debug-build/pr33305.c" target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/pr33432.ll b/llvm/test/Transforms/NewGVN/pr33432.ll --- a/llvm/test/Transforms/NewGVN/pr33432.ll +++ b/llvm/test/Transforms/NewGVN/pr33432.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; Ensure we do not incorrect do phi of ops @d = external local_unnamed_addr global i32, align 4 diff --git a/llvm/test/Transforms/NewGVN/pr33461.ll b/llvm/test/Transforms/NewGVN/pr33461.ll --- a/llvm/test/Transforms/NewGVN/pr33461.ll +++ b/llvm/test/Transforms/NewGVN/pr33461.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ;; Ensure the store verifier is not overzealous -; RUN: opt -newgvn -enable-phi-of-ops=true -S %s | FileCheck %s +; RUN: opt -passes=newgvn -enable-phi-of-ops=true -S %s | FileCheck %s @b = external global i16, align 2 define void @patatino() { diff --git a/llvm/test/Transforms/NewGVN/pr33720.ll b/llvm/test/Transforms/NewGVN/pr33720.ll --- a/llvm/test/Transforms/NewGVN/pr33720.ll +++ b/llvm/test/Transforms/NewGVN/pr33720.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s @f = external local_unnamed_addr global i64 @b = external local_unnamed_addr global i64 diff --git a/llvm/test/Transforms/NewGVN/pr34135.ll b/llvm/test/Transforms/NewGVN/pr34135.ll --- a/llvm/test/Transforms/NewGVN/pr34135.ll +++ b/llvm/test/Transforms/NewGVN/pr34135.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -enable-phi-of-ops=true -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -enable-phi-of-ops=true -S | FileCheck %s ;; Make sure we don't incorrectly use predicateinfo to simplify phi of ops cases source_filename = "pr34135.ll" diff --git a/llvm/test/Transforms/NewGVN/pr34430.ll b/llvm/test/Transforms/NewGVN/pr34430.ll --- a/llvm/test/Transforms/NewGVN/pr34430.ll +++ b/llvm/test/Transforms/NewGVN/pr34430.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; ModuleID = 'bugpoint-reduced-simplified.bc' -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s source_filename = "bugpoint-output-e4c7d0f.bc" ; Make sure we still properly resolve phi cycles when they involve predicateinfo copies of phis. diff --git a/llvm/test/Transforms/NewGVN/pr34452.ll b/llvm/test/Transforms/NewGVN/pr34452.ll --- a/llvm/test/Transforms/NewGVN/pr34452.ll +++ b/llvm/test/Transforms/NewGVN/pr34452.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s ;; Ensure we don't crash when simplifying aggregate value expressions source_filename = "bugpoint-output-09f7a24.bc" diff --git a/llvm/test/Transforms/NewGVN/pr35074.ll b/llvm/test/Transforms/NewGVN/pr35074.ll --- a/llvm/test/Transforms/NewGVN/pr35074.ll +++ b/llvm/test/Transforms/NewGVN/pr35074.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s define void @sort(i64 %.16) { ; CHECK-LABEL: @sort( diff --git a/llvm/test/Transforms/NewGVN/pr35125.ll b/llvm/test/Transforms/NewGVN/pr35125.ll --- a/llvm/test/Transforms/NewGVN/pr35125.ll +++ b/llvm/test/Transforms/NewGVN/pr35125.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s @a = common global i32 0, align 4 @.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1 diff --git a/llvm/test/Transforms/NewGVN/pr43441.ll b/llvm/test/Transforms/NewGVN/pr43441.ll --- a/llvm/test/Transforms/NewGVN/pr43441.ll +++ b/llvm/test/Transforms/NewGVN/pr43441.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %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/NewGVN/pre-compare.ll b/llvm/test/Transforms/NewGVN/pre-compare.ll --- a/llvm/test/Transforms/NewGVN/pre-compare.ll +++ b/llvm/test/Transforms/NewGVN/pre-compare.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -S < %s | FileCheck %s ; C source: ; diff --git a/llvm/test/Transforms/NewGVN/preserve-metadata-for-predicate-replacements.ll b/llvm/test/Transforms/NewGVN/preserve-metadata-for-predicate-replacements.ll --- a/llvm/test/Transforms/NewGVN/preserve-metadata-for-predicate-replacements.ll +++ b/llvm/test/Transforms/NewGVN/preserve-metadata-for-predicate-replacements.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn %s -S | FileCheck %s +; RUN: opt -passes=newgvn %s -S | FileCheck %s declare void @use(i32) diff --git a/llvm/test/Transforms/NewGVN/propagate-ir-flags.ll b/llvm/test/Transforms/NewGVN/propagate-ir-flags.ll --- a/llvm/test/Transforms/NewGVN/propagate-ir-flags.ll +++ b/llvm/test/Transforms/NewGVN/propagate-ir-flags.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; CHECK-LABEL: func_fast ; CHECK: fadd fast double diff --git a/llvm/test/Transforms/NewGVN/readattrs.ll b/llvm/test/Transforms/NewGVN/readattrs.ll --- a/llvm/test/Transforms/NewGVN/readattrs.ll +++ b/llvm/test/Transforms/NewGVN/readattrs.ll @@ -1,4 +1,4 @@ -; RUN: opt -newgvn -S -o - < %s | FileCheck %s +; RUN: opt -passes=newgvn -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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/rle-no-phi-translate-xfail.ll b/llvm/test/Transforms/NewGVN/rle-no-phi-translate-xfail.ll --- a/llvm/test/Transforms/NewGVN/rle-no-phi-translate-xfail.ll +++ b/llvm/test/Transforms/NewGVN/rle-no-phi-translate-xfail.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -newgvn -S | FileCheck %s +; RUN: opt < %s -passes=newgvn -S | FileCheck %s ; XFAIL: * ; FIXME: This should be promotable, but memdep/gvn don't track values ; path/edge sensitively enough. diff --git a/llvm/test/Transforms/NewGVN/simp-to-self.ll b/llvm/test/Transforms/NewGVN/simp-to-self.ll --- a/llvm/test/Transforms/NewGVN/simp-to-self.ll +++ b/llvm/test/Transforms/NewGVN/simp-to-self.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -newgvn | FileCheck %s +; RUN: opt -S < %s -passes=newgvn | FileCheck %s ; CHECK-LABEL: for.cond: ; CHECK-NEXT: %lv = load i32, i32* bitcast (i64* @a to i32*) diff --git a/llvm/test/Transforms/NewGVN/storeoverstore.ll b/llvm/test/Transforms/NewGVN/storeoverstore.ll --- a/llvm/test/Transforms/NewGVN/storeoverstore.ll +++ b/llvm/test/Transforms/NewGVN/storeoverstore.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -enable-phi-of-ops=true -S < %s | FileCheck %s +; RUN: opt -passes=newgvn -enable-phi-of-ops=true -S < %s | FileCheck %s ; RUN: opt -passes=newgvn -enable-phi-of-ops=true -S -o - %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/todo-pr35074-phi-of-ops.ll b/llvm/test/Transforms/NewGVN/todo-pr35074-phi-of-ops.ll --- a/llvm/test/Transforms/NewGVN/todo-pr35074-phi-of-ops.ll +++ b/llvm/test/Transforms/NewGVN/todo-pr35074-phi-of-ops.ll @@ -1,6 +1,6 @@ ; REQUIRES: asserts -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s XFAIL: * diff --git a/llvm/test/Transforms/NewGVN/todo-pr36335-phi-undef.ll b/llvm/test/Transforms/NewGVN/todo-pr36335-phi-undef.ll --- a/llvm/test/Transforms/NewGVN/todo-pr36335-phi-undef.ll +++ b/llvm/test/Transforms/NewGVN/todo-pr36335-phi-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; TODO: NewGVN currently miscomiles the function below. PR36335. diff --git a/llvm/test/Transforms/NewGVN/todo-pr37121-seens-this-value-a-lot.ll b/llvm/test/Transforms/NewGVN/todo-pr37121-seens-this-value-a-lot.ll --- a/llvm/test/Transforms/NewGVN/todo-pr37121-seens-this-value-a-lot.ll +++ b/llvm/test/Transforms/NewGVN/todo-pr37121-seens-this-value-a-lot.ll @@ -1,6 +1,6 @@ ; REQUIRES: asserts -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; XFAIL: * diff --git a/llvm/test/Transforms/NewGVN/todo-pr42422-phi-of-ops.ll b/llvm/test/Transforms/NewGVN/todo-pr42422-phi-of-ops.ll --- a/llvm/test/Transforms/NewGVN/todo-pr42422-phi-of-ops.ll +++ b/llvm/test/Transforms/NewGVN/todo-pr42422-phi-of-ops.ll @@ -1,6 +1,6 @@ ; REQUIRES: asserts -; RUN: opt -newgvn -S %s | FileCheck %s +; RUN: opt -passes=newgvn -S %s | FileCheck %s ; XFAIL: * diff --git a/llvm/test/Transforms/NewGVN/verify-memoryphi.ll b/llvm/test/Transforms/NewGVN/verify-memoryphi.ll --- a/llvm/test/Transforms/NewGVN/verify-memoryphi.ll +++ b/llvm/test/Transforms/NewGVN/verify-memoryphi.ll @@ -1,6 +1,6 @@ ; Skip dead MemoryPhis when performing memory congruency verification ; in NewGVN. -; RUN: opt -S -newgvn %s | FileCheck %s +; RUN: opt -S -passes=newgvn %s | FileCheck %s ; REQUIRES: asserts ; CHECK: define void @tinkywinky() {