diff --git a/llvm/test/Transforms/NewGVN/2007-07-25-InfiniteLoop.ll b/llvm/test/Transforms/NewGVN/2007-07-25-InfiniteLoop.ll --- a/llvm/test/Transforms/NewGVN/2007-07-25-InfiniteLoop.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-25-InfiniteLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s %struct.INT2 = type { i32, i32 } @blkshifts = external global %struct.INT2* ; <%struct.INT2**> [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2007-07-26-InterlockingLoops.ll b/llvm/test/Transforms/NewGVN/2007-07-26-InterlockingLoops.ll --- a/llvm/test/Transforms/NewGVN/2007-07-26-InterlockingLoops.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-26-InterlockingLoops.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s @last = external global [65 x i32*] diff --git a/llvm/test/Transforms/NewGVN/2007-07-31-NoDomInherit-xfail.ll b/llvm/test/Transforms/NewGVN/2007-07-31-NoDomInherit-xfail.ll --- a/llvm/test/Transforms/NewGVN/2007-07-31-NoDomInherit-xfail.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-31-NoDomInherit-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s %struct.anon = type { i32 (i32, i32, i32)*, i32, i32, [3 x i32], i8*, i8*, i8* } @debug = external constant i32 ; [#uses=0] diff --git a/llvm/test/Transforms/NewGVN/2007-07-31-RedundantPhi.ll b/llvm/test/Transforms/NewGVN/2007-07-31-RedundantPhi.ll --- a/llvm/test/Transforms/NewGVN/2007-07-31-RedundantPhi.ll +++ b/llvm/test/Transforms/NewGVN/2007-07-31-RedundantPhi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s @img_width = external global i16 ; [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2008-07-02-Unreachable.ll b/llvm/test/Transforms/NewGVN/2008-07-02-Unreachable.ll --- a/llvm/test/Transforms/NewGVN/2008-07-02-Unreachable.ll +++ b/llvm/test/Transforms/NewGVN/2008-07-02-Unreachable.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; PR2503 @g_3 = external global i8 ; [#uses=2] diff --git a/llvm/test/Transforms/NewGVN/2010-03-31-RedundantPHIs.ll b/llvm/test/Transforms/NewGVN/2010-03-31-RedundantPHIs.ll --- a/llvm/test/Transforms/NewGVN/2010-03-31-RedundantPHIs.ll +++ b/llvm/test/Transforms/NewGVN/2010-03-31-RedundantPHIs.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; CHECK-NOT: load ; CHECK-NOT: phi diff --git a/llvm/test/Transforms/NewGVN/2010-11-13-Simplify.ll b/llvm/test/Transforms/NewGVN/2010-11-13-Simplify.ll --- a/llvm/test/Transforms/NewGVN/2010-11-13-Simplify.ll +++ b/llvm/test/Transforms/NewGVN/2010-11-13-Simplify.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s declare i32 @foo(i32) readnone diff --git a/llvm/test/Transforms/NewGVN/2011-09-07-TypeIdFor.ll b/llvm/test/Transforms/NewGVN/2011-09-07-TypeIdFor.ll --- a/llvm/test/Transforms/NewGVN/2011-09-07-TypeIdFor.ll +++ b/llvm/test/Transforms/NewGVN/2011-09-07-TypeIdFor.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s %struct.__fundamental_type_info_pseudo = type { %struct.__type_info_pseudo } %struct.__type_info_pseudo = type { i8*, i8* } diff --git a/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail-inseltpoison.ll b/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail-inseltpoison.ll --- a/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail-inseltpoison.ll +++ b/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail-inseltpoison.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s declare void @llvm.masked.scatter.v2i32.v2p0i32(<2 x i32> , <2 x i32*> , i32 , <2 x i1> ) declare <2 x i32> @llvm.masked.gather.v2i32.v2p0i32(<2 x i32*>, i32, <2 x i1>, <2 x i32>) diff --git a/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail.ll b/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail.ll --- a/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail.ll +++ b/llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s declare void @llvm.masked.scatter.v2i32.v2p0i32(<2 x i32> , <2 x i32*> , i32 , <2 x i1> ) declare <2 x i32> @llvm.masked.gather.v2i32.v2p0i32(<2 x i32*>, i32, <2 x i1>, <2 x i32>) diff --git a/llvm/test/Transforms/NewGVN/MemdepMiscompile.ll b/llvm/test/Transforms/NewGVN/MemdepMiscompile.ll --- a/llvm/test/Transforms/NewGVN/MemdepMiscompile.ll +++ b/llvm/test/Transforms/NewGVN/MemdepMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -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-macosx10.7.0" diff --git a/llvm/test/Transforms/NewGVN/basic-cyclic-opt.ll b/llvm/test/Transforms/NewGVN/basic-cyclic-opt.ll --- a/llvm/test/Transforms/NewGVN/basic-cyclic-opt.ll +++ b/llvm/test/Transforms/NewGVN/basic-cyclic-opt.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" ;; Function Attrs: nounwind ssp uwtable diff --git a/llvm/test/Transforms/NewGVN/basic-undef-test.ll b/llvm/test/Transforms/NewGVN/basic-undef-test.ll --- a/llvm/test/Transforms/NewGVN/basic-undef-test.ll +++ b/llvm/test/Transforms/NewGVN/basic-undef-test.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S < %s | FileCheck %s ; ModuleID = 'test3.ll' target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/calloc-load-removal.ll b/llvm/test/Transforms/NewGVN/calloc-load-removal.ll --- a/llvm/test/Transforms/NewGVN/calloc-load-removal.ll +++ b/llvm/test/Transforms/NewGVN/calloc-load-removal.ll @@ -1,5 +1,5 @@ -; RUN: opt -S -basic-aa -newgvn < %s | FileCheck %s -; RUN: opt -S -basic-aa -newgvn -disable-simplify-libcalls < %s | FileCheck %s -check-prefix=CHECK_NO_LIBCALLS +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn < %s | FileCheck %s +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn -disable-simplify-libcalls < %s | FileCheck %s -check-prefix=CHECK_NO_LIBCALLS ; Check that loads from calloc are recognized as being zero. 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/NewGVN/calls-nonlocal-xfail.ll b/llvm/test/Transforms/NewGVN/calls-nonlocal-xfail.ll --- a/llvm/test/Transforms/NewGVN/calls-nonlocal-xfail.ll +++ b/llvm/test/Transforms/NewGVN/calls-nonlocal-xfail.ll @@ -2,7 +2,7 @@ ;; NewGVN zaps the strlens, but currently takes two iterations to evaluate the conditions, because ;; we prune predicateinfo, and the icmps only become equivalent after the strlens are zapped ; Two occurrences of strlen should be zapped. -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -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" diff --git a/llvm/test/Transforms/NewGVN/calls-readonly.ll b/llvm/test/Transforms/NewGVN/calls-readonly.ll --- a/llvm/test/Transforms/NewGVN/calls-readonly.ll +++ b/llvm/test/Transforms/NewGVN/calls-readonly.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; Should delete the second call to strlen even though the intervening strchr call exists. 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/NewGVN/completeness.ll b/llvm/test/Transforms/NewGVN/completeness.ll --- a/llvm/test/Transforms/NewGVN/completeness.ll +++ b/llvm/test/Transforms/NewGVN/completeness.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -enable-phi-of-ops=true -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -enable-phi-of-ops=true -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" define i32 @test1(i32, i8**) { diff --git a/llvm/test/Transforms/NewGVN/cond_br.ll b/llvm/test/Transforms/NewGVN/cond_br.ll --- a/llvm/test/Transforms/NewGVN/cond_br.ll +++ b/llvm/test/Transforms/NewGVN/cond_br.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S < %s | FileCheck %s @y = external global i32 @z = external global i32 diff --git a/llvm/test/Transforms/NewGVN/cond_br2-xfail.ll b/llvm/test/Transforms/NewGVN/cond_br2-xfail.ll --- a/llvm/test/Transforms/NewGVN/cond_br2-xfail.ll +++ b/llvm/test/Transforms/NewGVN/cond_br2-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -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" %"class.llvm::SmallVector" = type { %"class.llvm::SmallVectorImpl", [1 x %"union.llvm::SmallVectorBase::U"] } diff --git a/llvm/test/Transforms/NewGVN/condprop-xfail.ll b/llvm/test/Transforms/NewGVN/condprop-xfail.ll --- a/llvm/test/Transforms/NewGVN/condprop-xfail.ll +++ b/llvm/test/Transforms/NewGVN/condprop-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s @a = external global i32 ; [#uses=7] diff --git a/llvm/test/Transforms/NewGVN/condprop.ll b/llvm/test/Transforms/NewGVN/condprop.ll --- a/llvm/test/Transforms/NewGVN/condprop.ll +++ b/llvm/test/Transforms/NewGVN/condprop.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s declare void @foo(i1) diff --git a/llvm/test/Transforms/NewGVN/cyclic-phi-handling.ll b/llvm/test/Transforms/NewGVN/cyclic-phi-handling.ll --- a/llvm/test/Transforms/NewGVN/cyclic-phi-handling.ll +++ b/llvm/test/Transforms/NewGVN/cyclic-phi-handling.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" define void @foo(i32 %arg, i32 %arg1, i32 (i32, i32)* %arg2) { diff --git a/llvm/test/Transforms/NewGVN/deadstore.ll b/llvm/test/Transforms/NewGVN/deadstore.ll --- a/llvm/test/Transforms/NewGVN/deadstore.ll +++ b/llvm/test/Transforms/NewGVN/deadstore.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ;; Most of these are borrowed from transforms/DSE/simple.ll ;; NewGVN should be able to eliminate any stores of the same value that are actually redundnat. diff --git a/llvm/test/Transforms/NewGVN/equivalent-phi.ll b/llvm/test/Transforms/NewGVN/equivalent-phi.ll --- a/llvm/test/Transforms/NewGVN/equivalent-phi.ll +++ b/llvm/test/Transforms/NewGVN/equivalent-phi.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" @global = common global [1024 x i32] zeroinitializer, align 16 diff --git a/llvm/test/Transforms/NewGVN/fence-xfail.ll b/llvm/test/Transforms/NewGVN/fence-xfail.ll --- a/llvm/test/Transforms/NewGVN/fence-xfail.ll +++ b/llvm/test/Transforms/NewGVN/fence-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt -S -basic-aa -newgvn < %s | FileCheck %s +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn < %s | FileCheck %s @a = external constant i32 ; We can value forward across the fence since we can (semantically) diff --git a/llvm/test/Transforms/NewGVN/funclet.ll b/llvm/test/Transforms/NewGVN/funclet.ll --- a/llvm/test/Transforms/NewGVN/funclet.ll +++ b/llvm/test/Transforms/NewGVN/funclet.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -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-msvc" diff --git a/llvm/test/Transforms/NewGVN/lifetime-simple.ll b/llvm/test/Transforms/NewGVN/lifetime-simple.ll --- a/llvm/test/Transforms/NewGVN/lifetime-simple.ll +++ b/llvm/test/Transforms/NewGVN/lifetime-simple.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -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-darwin7" diff --git a/llvm/test/Transforms/NewGVN/load-constant-mem.ll b/llvm/test/Transforms/NewGVN/load-constant-mem.ll --- a/llvm/test/Transforms/NewGVN/load-constant-mem.ll +++ b/llvm/test/Transforms/NewGVN/load-constant-mem.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; PR4189 @G = external constant [4 x i32] diff --git a/llvm/test/Transforms/NewGVN/loadforward.ll b/llvm/test/Transforms/NewGVN/loadforward.ll --- a/llvm/test/Transforms/NewGVN/loadforward.ll +++ b/llvm/test/Transforms/NewGVN/loadforward.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" %rec11 = type { i16, i16, i16 } diff --git a/llvm/test/Transforms/NewGVN/malloc-load-removal.ll b/llvm/test/Transforms/NewGVN/malloc-load-removal.ll --- a/llvm/test/Transforms/NewGVN/malloc-load-removal.ll +++ b/llvm/test/Transforms/NewGVN/malloc-load-removal.ll @@ -1,5 +1,5 @@ -; RUN: opt -S -basic-aa -newgvn < %s | FileCheck %s -; RUN: opt -S -basic-aa -newgvn -disable-simplify-libcalls < %s | FileCheck %s -check-prefix=CHECK_NO_LIBCALLS +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn < %s | FileCheck %s +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn -disable-simplify-libcalls < %s | FileCheck %s -check-prefix=CHECK_NO_LIBCALLS ; PR13694 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/NewGVN/memory-handling.ll b/llvm/test/Transforms/NewGVN/memory-handling.ll --- a/llvm/test/Transforms/NewGVN/memory-handling.ll +++ b/llvm/test/Transforms/NewGVN/memory-handling.ll @@ -1,6 +1,6 @@ ;; This test is really dependent on propagating a lot of memory info around, but in the end, not ;; screwing up a single add. -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" %struct.Letter = type { i32, i32, i32, i32 } diff --git a/llvm/test/Transforms/NewGVN/non-local-offset.ll b/llvm/test/Transforms/NewGVN/non-local-offset.ll --- a/llvm/test/Transforms/NewGVN/non-local-offset.ll +++ b/llvm/test/Transforms/NewGVN/non-local-offset.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S < %s | FileCheck %s target datalayout = "e-p:64:64:64" diff --git a/llvm/test/Transforms/NewGVN/nonescaping-malloc-xfail.ll b/llvm/test/Transforms/NewGVN/nonescaping-malloc-xfail.ll --- a/llvm/test/Transforms/NewGVN/nonescaping-malloc-xfail.ll +++ b/llvm/test/Transforms/NewGVN/nonescaping-malloc-xfail.ll @@ -1,6 +1,6 @@ ; XFAIL: * ; REQUIRES: asserts -; RUN: opt < %s -basic-aa -newgvn -stats -disable-output 2>&1 | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -stats -disable-output 2>&1 | FileCheck %s ; rdar://7363102 ; CHECK: Number of loads deleted diff --git a/llvm/test/Transforms/NewGVN/null-aliases-nothing.ll b/llvm/test/Transforms/NewGVN/null-aliases-nothing.ll --- a/llvm/test/Transforms/NewGVN/null-aliases-nothing.ll +++ b/llvm/test/Transforms/NewGVN/null-aliases-nothing.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s %t = type { i32 } declare void @test1f(i8*) diff --git a/llvm/test/Transforms/NewGVN/phi-translate-partial-alias.ll b/llvm/test/Transforms/NewGVN/phi-translate-partial-alias.ll --- a/llvm/test/Transforms/NewGVN/phi-translate-partial-alias.ll +++ b/llvm/test/Transforms/NewGVN/phi-translate-partial-alias.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -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-f128:128:128-n8:16:32:64" diff --git a/llvm/test/Transforms/NewGVN/pr10820-xfail.ll b/llvm/test/Transforms/NewGVN/pr10820-xfail.ll --- a/llvm/test/Transforms/NewGVN/pr10820-xfail.ll +++ b/llvm/test/Transforms/NewGVN/pr10820-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; NewGVN fails this due to missing load coercion 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/pr24397.ll b/llvm/test/Transforms/NewGVN/pr24397.ll --- a/llvm/test/Transforms/NewGVN/pr24397.ll +++ b/llvm/test/Transforms/NewGVN/pr24397.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -disable-output < %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -disable-output < %s target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/NewGVN/pr31472.ll b/llvm/test/Transforms/NewGVN/pr31472.ll --- a/llvm/test/Transforms/NewGVN/pr31472.ll +++ b/llvm/test/Transforms/NewGVN/pr31472.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -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/pr31483.ll b/llvm/test/Transforms/NewGVN/pr31483.ll --- a/llvm/test/Transforms/NewGVN/pr31483.ll +++ b/llvm/test/Transforms/NewGVN/pr31483.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" @global = external hidden unnamed_addr constant [11 x i8], align 1 diff --git a/llvm/test/Transforms/NewGVN/pr31491.ll b/llvm/test/Transforms/NewGVN/pr31491.ll --- a/llvm/test/Transforms/NewGVN/pr31491.ll +++ b/llvm/test/Transforms/NewGVN/pr31491.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ;; Test that we do not infinite loop on this testcase, and that we do not try ;; to replace the phi node argument with the result of the phi node. target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/pr31501.ll b/llvm/test/Transforms/NewGVN/pr31501.ll --- a/llvm/test/Transforms/NewGVN/pr31501.ll +++ b/llvm/test/Transforms/NewGVN/pr31501.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" %struct.foo = type { %struct.wombat.28*, %struct.zot, %struct.wombat.28* } diff --git a/llvm/test/Transforms/NewGVN/pr31573.ll b/llvm/test/Transforms/NewGVN/pr31573.ll --- a/llvm/test/Transforms/NewGVN/pr31573.ll +++ b/llvm/test/Transforms/NewGVN/pr31573.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/pr31594.ll b/llvm/test/Transforms/NewGVN/pr31594.ll --- a/llvm/test/Transforms/NewGVN/pr31594.ll +++ b/llvm/test/Transforms/NewGVN/pr31594.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/NewGVN/pr31613.ll b/llvm/test/Transforms/NewGVN/pr31613.ll --- a/llvm/test/Transforms/NewGVN/pr31613.ll +++ b/llvm/test/Transforms/NewGVN/pr31613.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -enable-store-refinement -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -enable-store-refinement -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" ;; Both of these tests are tests of phi nodes that end up all equivalent to each other diff --git a/llvm/test/Transforms/NewGVN/pr31682.ll b/llvm/test/Transforms/NewGVN/pr31682.ll --- a/llvm/test/Transforms/NewGVN/pr31682.ll +++ b/llvm/test/Transforms/NewGVN/pr31682.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" %struct.foo = type { i32, i32, [2 x [4 x [6 x [6 x i16]]]] } diff --git a/llvm/test/Transforms/NewGVN/pr33196.ll b/llvm/test/Transforms/NewGVN/pr33196.ll --- a/llvm/test/Transforms/NewGVN/pr33196.ll +++ b/llvm/test/Transforms/NewGVN/pr33196.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -basic-aa -newgvn %s | FileCheck %s +; RUN: opt -S -aa-pipeline=basic-aa -passes=newgvn %s | FileCheck %s ; CHECK: define i32 @main() { ; CHECK-NEXT: entry: diff --git a/llvm/test/Transforms/NewGVN/pre-new-inst-xfail.ll b/llvm/test/Transforms/NewGVN/pre-new-inst-xfail.ll --- a/llvm/test/Transforms/NewGVN/pre-new-inst-xfail.ll +++ b/llvm/test/Transforms/NewGVN/pre-new-inst-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt -basic-aa -newgvn -S %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S %s | FileCheck %s %MyStruct = type { i32, i32 } define i8 @foo(i64 %in, i8* %arr) { diff --git a/llvm/test/Transforms/NewGVN/predicates.ll b/llvm/test/Transforms/NewGVN/predicates.ll --- a/llvm/test/Transforms/NewGVN/predicates.ll +++ b/llvm/test/Transforms/NewGVN/predicates.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S < %s | FileCheck %s ; Function Attrs: noinline norecurse nounwind readonly ssp uwtable define i32 @mp_unsgn_cmp(i32 %n, i32* nocapture readonly %in1, i32* nocapture readonly %in2) local_unnamed_addr { diff --git a/llvm/test/Transforms/NewGVN/range.ll b/llvm/test/Transforms/NewGVN/range.ll --- a/llvm/test/Transforms/NewGVN/range.ll +++ b/llvm/test/Transforms/NewGVN/range.ll @@ -1,4 +1,4 @@ -; RUN: opt -basic-aa -newgvn -S < %s | FileCheck %s +; RUN: opt -aa-pipeline=basic-aa -passes=newgvn -S < %s | FileCheck %s define i32 @test1(i32* %p) { ; CHECK-LABEL: @test1(i32* %p) diff --git a/llvm/test/Transforms/NewGVN/refine-stores.ll b/llvm/test/Transforms/NewGVN/refine-stores.ll --- a/llvm/test/Transforms/NewGVN/refine-stores.ll +++ b/llvm/test/Transforms/NewGVN/refine-stores.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ;; Now that we do store refinement, we have to verify that we add fake uses ;; when we skip existing stores. ;; We also are testing that various variations that cause stores to move classes diff --git a/llvm/test/Transforms/NewGVN/rle-must-alias-xfail.ll b/llvm/test/Transforms/NewGVN/rle-must-alias-xfail.ll --- a/llvm/test/Transforms/NewGVN/rle-must-alias-xfail.ll +++ b/llvm/test/Transforms/NewGVN/rle-must-alias-xfail.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s ; GVN should eliminate the fully redundant %9 GEP which ; allows DEAD to be removed. This is PR3198. diff --git a/llvm/test/Transforms/NewGVN/rle-nonlocal.ll b/llvm/test/Transforms/NewGVN/rle-nonlocal.ll --- a/llvm/test/Transforms/NewGVN/rle-nonlocal.ll +++ b/llvm/test/Transforms/NewGVN/rle-nonlocal.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s +; RUN: opt < %s -aa-pipeline=basic-aa -passes=newgvn -S | FileCheck %s define i32 @main(i32** %p, i32 %x, i32 %y) { ; CHECK-LABEL: @main(