diff options
Diffstat (limited to 'test/Transforms/IndVarSimplify')
78 files changed, 80 insertions, 80 deletions
diff --git a/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll b/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll index c5481c684b..92911ae078 100644 --- a/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll +++ b/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll @@ -1,7 +1,7 @@ ; Induction variable pass is doing bad things with pointer induction vars, ; trying to do arithmetic on them directly. ; -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; define void @test(i32 %A, i32 %S, i8* %S.upgrd.1) { ; <label>:0 diff --git a/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll b/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll index d12709a84f..38fa112bdb 100644 --- a/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll +++ b/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll @@ -1,7 +1,7 @@ ; This is a test case for the expression analysis code, not really indvars. ; It was assuming any constant of int type was a ConstantInteger. ; -; RUN: opt %s -indvars +; RUN: opt < %s -indvars @X = global i32 7 ; <i32*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll b/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll index a5bb87eecf..36d50065d3 100644 --- a/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll +++ b/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep indvar +; RUN: opt < %s -indvars -S | grep indvar define i32 @test() { ; <label>:0 diff --git a/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll b/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll index 189ae950dd..c8f97e39be 100644 --- a/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll +++ b/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll @@ -1,7 +1,7 @@ ; The induction variable canonicalization pass shouldn't leave dead ; instructions laying around! ; -; RUN: opt %s -indvars -S | \ +; RUN: opt < %s -indvars -S | \ ; RUN: not grep {#uses=0} define i32 @mul(i32 %x, i32 %y) { diff --git a/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll b/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll index bc2d088d3a..70ea11ebf0 100644 --- a/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll +++ b/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @test() { entry: diff --git a/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll b/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll index dfbef05d2f..5aa2d90a42 100644 --- a/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll +++ b/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @_ZN17CoinFactorization7cleanupEv() { entry: br i1 false, label %loopexit.14, label %cond_continue.3 diff --git a/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll b/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll index 7f9bb0d422..0fc9c8547d 100644 --- a/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll +++ b/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep indvar | not grep i32 +; RUN: opt < %s -indvars -S | grep indvar | not grep i32 @G = global i64 0 ; <i64*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll b/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll index 9111f616e6..c49819e27a 100644 --- a/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll +++ b/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @test() { br label %endif.0.i diff --git a/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll b/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll index 1bb55be199..1ed4c44d26 100644 --- a/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll +++ b/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; ModuleID = '2004-04-05-InvokeCastCrash.ll' %struct.__false_type = type { i8 } %"struct.__gnu_cxx::_Hashtable_node<const llvm::Constant*>" = type { %"struct.__gnu_cxx::_Hashtable_node<const llvm::Constant*>"*, %"struct.llvm::Constant"* } diff --git a/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll b/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll index 3589450baa..ec1218bb86 100644 --- a/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll +++ b/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @.outPlank_21() { entry: diff --git a/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll b/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll index 6849f13945..aee67ccacc 100644 --- a/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll +++ b/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @_ZN5ArrayISt7complexIdEEC2ERK10dim_vector() { entry: diff --git a/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll b/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll index cf5f31d34e..70a7a9de05 100644 --- a/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll +++ b/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output declare void @q_atomic_increment() diff --git a/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll b/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll index 4b55d8707c..1ba69826fa 100644 --- a/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll +++ b/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | \ +; RUN: opt < %s -indvars -S | \ ; RUN: grep {ret i32 152} define i32 @main() { diff --git a/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll b/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll index e6fca7ba74..0862f1131b 100644 --- a/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll +++ b/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @main() { entry: diff --git a/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll b/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll index 310e450ad7..f9a3fe6233 100644 --- a/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll +++ b/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output @fixtab = external global [29 x [29 x [2 x i32]]] ; <[29 x [29 x [2 x i32]]]*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll b/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll index 82e1a6b56b..1bbc631080 100644 --- a/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll +++ b/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll @@ -1,5 +1,5 @@ ; PR726 -; RUN: opt %s -indvars -S | \ +; RUN: opt < %s -indvars -S | \ ; RUN: grep {ret i32 27} ; Make sure to compute the right exit value based on negative strides. diff --git a/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll b/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll index 7a84008c34..36ec2b81ba 100644 --- a/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll +++ b/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output define void @get_block() { endif.0: diff --git a/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll b/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll index 5d45f38e7d..787c9b07bd 100644 --- a/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll +++ b/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; ModuleID = '2006-09-20-LFTR-Crash.ll' %struct.p7prior_s = type { i32, i32, [200 x float], [200 x [7 x float]], i32, [200 x float], [200 x [20 x float]], i32, [200 x float], [200 x [20 x float]] } diff --git a/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll b/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll index fbd1bdb558..79ac1f072d 100644 --- a/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll +++ b/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" %struct.vorbis_dsp_state = type { i32, %struct.vorbis_info*, float**, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* } diff --git a/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll b/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll index d68541c1d5..268b8d1a7e 100644 --- a/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll +++ b/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll @@ -1,5 +1,5 @@ ; PR1015 -; RUN: opt %s -indvars -S | not grep {ret i32 0} +; RUN: opt < %s -indvars -S | not grep {ret i32 0} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" diff --git a/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll b/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll index 74c7095afa..fc7d633591 100644 --- a/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll +++ b/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; PR1487 %struct.AVClass = type { i8*, i8* (i8*)*, %struct.AVOption* } diff --git a/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll b/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll index b6cf6e7b95..cad4eb155c 100644 --- a/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll +++ b/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; PR1814 target datalayout = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32" diff --git a/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll b/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll index cfeb4d2588..77235d2888 100644 --- a/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll +++ b/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; PR2434 define fastcc void @regcppop() nounwind { diff --git a/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll b/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll index 1822fa5434..288431aa8b 100644 --- a/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll +++ b/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep sext | count 1 +; RUN: opt < %s -indvars -S | grep sext | count 1 ; ModuleID = '<stdin>' %struct.App1Marker = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }> diff --git a/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll b/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll index d83997f180..23e7884961 100644 --- a/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll +++ b/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR2857 @foo = external global i32 ; <i32*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll b/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll index d352da6662..7b4032b2eb 100644 --- a/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll +++ b/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep icmp | count 4 +; RUN: opt < %s -indvars -S | grep icmp | count 4 define void @bar() nounwind { entry: br label %bb diff --git a/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll b/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll index 137a5f43ba..311d3daa8f 100644 --- a/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll +++ b/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -indvars -S | grep icmp | count 2 -; RUN: opt %s -indvars -S | grep sitofp | count 1 -; RUN: opt %s -indvars -S | grep uitofp | count 1 +; RUN: opt < %s -indvars -S | grep icmp | count 2 +; RUN: opt < %s -indvars -S | grep sitofp | count 1 +; RUN: opt < %s -indvars -S | grep uitofp | count 1 define void @bar() nounwind { entry: diff --git a/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll b/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll index 1ea7eaa252..39b97af86f 100644 --- a/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll +++ b/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars define void @t() nounwind { entry: diff --git a/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll b/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll index 8b9554ba93..37ad63a9a7 100644 --- a/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll +++ b/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | not grep {sext} +; RUN: opt < %s -indvars -S | not grep {sext} ; ModuleID = '<stdin>' 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-darwin9.6" diff --git a/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll b/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll index 10f52b64ce..803b540606 100644 --- a/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll +++ b/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -instcombine -S | not grep {\[sz\]ext} +; RUN: opt < %s -indvars -instcombine -S | not grep {\[sz\]ext} ; ModuleID = '<stdin>' ;extern int *a, *b, *c, *d, *e, *f; /* 64 bit */ ;extern int K[256]; diff --git a/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll b/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll index f81232e661..24074bf727 100644 --- a/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll +++ b/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; rdar://6817574 define i32 @t1() nounwind ssp { diff --git a/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll b/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll index 3a31171841..9fd2d2f04f 100644 --- a/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll +++ b/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep icmp | grep next +; RUN: opt < %s -indvars -S | grep icmp | grep next ; PR4086 declare void @foo() diff --git a/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll b/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll index ebcd998558..9ad86913e2 100644 --- a/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll +++ b/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR4258 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-linux-gnu" diff --git a/test/Transforms/IndVarSimplify/ada-loops.ll b/test/Transforms/IndVarSimplify/ada-loops.ll index b5fcbed8fc..436840ae90 100644 --- a/test/Transforms/IndVarSimplify/ada-loops.ll +++ b/test/Transforms/IndVarSimplify/ada-loops.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep phi %t | count 4 ; RUN: grep {= phi i32} %t | count 4 ; RUN: not grep {sext i} %t diff --git a/test/Transforms/IndVarSimplify/addrec-gep.ll b/test/Transforms/IndVarSimplify/addrec-gep.ll index 319fd5ecef..9e4273491e 100644 --- a/test/Transforms/IndVarSimplify/addrec-gep.ll +++ b/test/Transforms/IndVarSimplify/addrec-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep getelementptr %t | count 1 ; RUN: grep {mul .*, 37} %t | count 1 ; RUN: grep {add .*, 5203} %t | count 1 diff --git a/test/Transforms/IndVarSimplify/ashr-tripcount.ll b/test/Transforms/IndVarSimplify/ashr-tripcount.ll index 5d63c0caa1..baaefdc2bc 100644 --- a/test/Transforms/IndVarSimplify/ashr-tripcount.ll +++ b/test/Transforms/IndVarSimplify/ashr-tripcount.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep sext %t | count 1 ; Indvars should be able to eliminate all of the sign extensions diff --git a/test/Transforms/IndVarSimplify/avoid-i0.ll b/test/Transforms/IndVarSimplify/avoid-i0.ll index 186f4bc1ce..d110a8a7ba 100644 --- a/test/Transforms/IndVarSimplify/avoid-i0.ll +++ b/test/Transforms/IndVarSimplify/avoid-i0.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR4052 ; PR4054 diff --git a/test/Transforms/IndVarSimplify/casted-argument.ll b/test/Transforms/IndVarSimplify/casted-argument.ll index cd6ffd8bdf..dfefe1dc5b 100644 --- a/test/Transforms/IndVarSimplify/casted-argument.ll +++ b/test/Transforms/IndVarSimplify/casted-argument.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; PR4009 ; PR4038 diff --git a/test/Transforms/IndVarSimplify/complex-scev.ll b/test/Transforms/IndVarSimplify/complex-scev.ll index 28e9e4a97e..434c4ec995 100644 --- a/test/Transforms/IndVarSimplify/complex-scev.ll +++ b/test/Transforms/IndVarSimplify/complex-scev.ll @@ -1,7 +1,7 @@ ; The i induction variable looks like a wrap-around, but it really is just ; a simple affine IV. Make sure that indvars eliminates it. -; RUN: opt %s -indvars -S | grep phi | count 1 +; RUN: opt < %s -indvars -S | grep phi | count 1 define void @foo() { entry: diff --git a/test/Transforms/IndVarSimplify/divide-pointer.ll b/test/Transforms/IndVarSimplify/divide-pointer.ll index 599164874d..16608ee828 100644 --- a/test/Transforms/IndVarSimplify/divide-pointer.ll +++ b/test/Transforms/IndVarSimplify/divide-pointer.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR4271 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/test/Transforms/IndVarSimplify/exit_value_tests.ll b/test/Transforms/IndVarSimplify/exit_value_tests.ll index ed86ba5c4e..737e733375 100644 --- a/test/Transforms/IndVarSimplify/exit_value_tests.ll +++ b/test/Transforms/IndVarSimplify/exit_value_tests.ll @@ -2,7 +2,7 @@ ; these loops all have predictable exit values we can replace the use outside ; of the loop with a closed-form computation, making the loop dead. ; -; RUN: opt %s -indvars -loop-deletion -simplifycfg | \ +; RUN: opt < %s -indvars -loop-deletion -simplifycfg | \ ; RUN: llvm-dis | not grep br define i32 @polynomial_constant() { diff --git a/test/Transforms/IndVarSimplify/interesting-invoke-use.ll b/test/Transforms/IndVarSimplify/interesting-invoke-use.ll index 255ef079aa..8adc0e5257 100644 --- a/test/Transforms/IndVarSimplify/interesting-invoke-use.ll +++ b/test/Transforms/IndVarSimplify/interesting-invoke-use.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; An invoke has a result value which is used in an "Interesting" ; expression inside the loop. IndVars should be able to rewrite diff --git a/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll b/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll index 97adfbb1c3..02145d1c5e 100644 --- a/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll +++ b/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; ModuleID = 'testcase.bc' 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/test/Transforms/IndVarSimplify/iv-sext.ll b/test/Transforms/IndVarSimplify/iv-sext.ll index 8f3ce92f3c..5516502210 100644 --- a/test/Transforms/IndVarSimplify/iv-sext.ll +++ b/test/Transforms/IndVarSimplify/iv-sext.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep {= sext} %t | count 4 ; RUN: grep {phi i64} %t | count 2 diff --git a/test/Transforms/IndVarSimplify/lftr-other-uses.ll b/test/Transforms/IndVarSimplify/lftr-other-uses.ll index aa025b70db..09ec237cfc 100644 --- a/test/Transforms/IndVarSimplify/lftr-other-uses.ll +++ b/test/Transforms/IndVarSimplify/lftr-other-uses.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -disable-output +; RUN: opt < %s -indvars -disable-output ; Don't RAUW the loop's original comparison instruction if it has ; other uses which aren't dominated by the new comparison instruction. diff --git a/test/Transforms/IndVarSimplify/lftr-promote.ll b/test/Transforms/IndVarSimplify/lftr-promote.ll index 29a5b6f860..c4ecc84556 100644 --- a/test/Transforms/IndVarSimplify/lftr-promote.ll +++ b/test/Transforms/IndVarSimplify/lftr-promote.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep add | count 1 +; RUN: opt < %s -indvars -S | grep add | count 1 ; Indvars should be able to compute the exit value of this loop ; without any additional arithmetic. The only add needed should diff --git a/test/Transforms/IndVarSimplify/lftr_simple.ll b/test/Transforms/IndVarSimplify/lftr_simple.ll index 37603eb6c2..e373013609 100644 --- a/test/Transforms/IndVarSimplify/lftr_simple.ll +++ b/test/Transforms/IndVarSimplify/lftr_simple.ll @@ -1,6 +1,6 @@ ; LFTR should eliminate the need for the computation of i*i completely. It ; is only used to compute the exit value. -; RUN: opt %s -indvars -dce -S | not grep mul +; RUN: opt < %s -indvars -dce -S | not grep mul @A = external global i32 ; <i32*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/loop-invariant-step.ll b/test/Transforms/IndVarSimplify/loop-invariant-step.ll index 9fd1ca8191..2d2d1fe264 100644 --- a/test/Transforms/IndVarSimplify/loop-invariant-step.ll +++ b/test/Transforms/IndVarSimplify/loop-invariant-step.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -loop-index-split -instcombine -indvars -disable-output +; RUN: opt < %s -loop-index-split -instcombine -indvars -disable-output ; PR4455 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/test/Transforms/IndVarSimplify/loop_evaluate10.ll b/test/Transforms/IndVarSimplify/loop_evaluate10.ll index bccae9f19e..4ec4acadb4 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate10.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate10.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S \ +; RUN: opt < %s -indvars -S \ ; RUN: | grep {%b.1 = phi i32 \\\[ 2, %bb \\\], \\\[ 1, %bb2 \\\]} ; This loop has multiple exits, and the value of %b1 depends on which diff --git a/test/Transforms/IndVarSimplify/loop_evaluate11.ll b/test/Transforms/IndVarSimplify/loop_evaluate11.ll index 80e99e1b3b..40b785ea4d 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate11.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate11.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -domfrontier -indvars -loop-deletion +; RUN: opt < %s -domfrontier -indvars -loop-deletion 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/test/Transforms/IndVarSimplify/loop_evaluate7.ll b/test/Transforms/IndVarSimplify/loop_evaluate7.ll index 09c8df79a7..b9c0b12f2d 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate7.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate7.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR4436 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" diff --git a/test/Transforms/IndVarSimplify/loop_evaluate8.ll b/test/Transforms/IndVarSimplify/loop_evaluate8.ll index 9ea99620f5..2a9d205962 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate8.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate8.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | not grep select +; RUN: opt < %s -indvars -S | not grep select ; This loop has backedge-taken-count zero. Indvars shouldn't expand any ; instructions to compute a trip count. diff --git a/test/Transforms/IndVarSimplify/loop_evaluate9.ll b/test/Transforms/IndVarSimplify/loop_evaluate9.ll index 9dd7ef0ff6..8184a73f89 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate9.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate9.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep {\[%\]tmp7 = icmp eq i8 -28, -28} %t ; RUN: grep {\[%\]tmp8 = icmp eq i8 63, 63} %t ; PR4477 diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_1.ll b/test/Transforms/IndVarSimplify/loop_evaluate_1.ll index c57ab0dc18..abf1bc3a9d 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_1.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_1.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -loop-deletion -simplifycfg -S | not grep br +; RUN: opt < %s -indvars -loop-deletion -simplifycfg -S | not grep br ; ; Testcase distilled from 256.bzip2 diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_2.ll b/test/Transforms/IndVarSimplify/loop_evaluate_2.ll index 3b34eecc54..c0099a83ab 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_2.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -loop-deletion -simplifycfg | opt \ +; RUN: opt < %s -indvars -loop-deletion -simplifycfg | opt \ ; RUN: -analyze -loops | not grep "^Loop Containing" ; PR1179 diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_3.ll b/test/Transforms/IndVarSimplify/loop_evaluate_3.ll index 787c284089..65c66f7f5a 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_3.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_3.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep {ret i32 600000} +; RUN: opt < %s -indvars -S | grep {ret i32 600000} ; PR1179 define i32 @foo() { diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_4.ll b/test/Transforms/IndVarSimplify/loop_evaluate_4.ll index f7959459f8..e4b642c7f5 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_4.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_4.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep {ret i32 9900} +; RUN: opt < %s -indvars -S | grep {ret i32 9900} ; PR1179 define i32 @test4() { diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_5.ll b/test/Transforms/IndVarSimplify/loop_evaluate_5.ll index 0d9ed0a8a0..80b961ac7c 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_5.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_5.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep {120, %bb2.bb3_crit_edge} +; RUN: opt < %s -indvars -S | grep {120, %bb2.bb3_crit_edge} 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-pc-linux-gnu" diff --git a/test/Transforms/IndVarSimplify/loop_evaluate_6.ll b/test/Transforms/IndVarSimplify/loop_evaluate_6.ll index aa8fe30a86..da38de538f 100644 --- a/test/Transforms/IndVarSimplify/loop_evaluate_6.ll +++ b/test/Transforms/IndVarSimplify/loop_evaluate_6.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -loop-deletion -S | grep phi | count 1 +; RUN: opt < %s -indvars -loop-deletion -S | grep phi | count 1 ; XFAIL: * ; Indvars can't evaluate this loop, because ScalarEvolution can't compute diff --git a/test/Transforms/IndVarSimplify/max-pointer.ll b/test/Transforms/IndVarSimplify/max-pointer.ll index 644e3ec071..71bc720d5e 100644 --- a/test/Transforms/IndVarSimplify/max-pointer.ll +++ b/test/Transforms/IndVarSimplify/max-pointer.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep {icmp ugt i8\\\*} %t | count 1 ; RUN: grep {icmp sgt i8\\\*} %t | count 1 diff --git a/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll b/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll index 1f2df90779..34d432b4ee 100644 --- a/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll +++ b/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars 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" @ue = external global i64 diff --git a/test/Transforms/IndVarSimplify/pointer-indvars.ll b/test/Transforms/IndVarSimplify/pointer-indvars.ll index c2dee6a72e..6d25f90542 100644 --- a/test/Transforms/IndVarSimplify/pointer-indvars.ll +++ b/test/Transforms/IndVarSimplify/pointer-indvars.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep indvar +; RUN: opt < %s -indvars -S | grep indvar @G = global i32* null ; <i32**> [#uses=1] @Array = external global [40 x i32] ; <[40 x i32]*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/pointer.ll b/test/Transforms/IndVarSimplify/pointer.ll index ae59055fc6..5eee655d42 100644 --- a/test/Transforms/IndVarSimplify/pointer.ll +++ b/test/Transforms/IndVarSimplify/pointer.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep {%exitcond = icmp eq i64 %indvar.next, %n} %t ; RUN: grep {getelementptr i8\\* %A, i64 %indvar} %t ; RUN: grep getelementptr %t | count 1 diff --git a/test/Transforms/IndVarSimplify/preserve-gep-nested.ll b/test/Transforms/IndVarSimplify/preserve-gep-nested.ll index a247f7b499..bb0993c88e 100644 --- a/test/Transforms/IndVarSimplify/preserve-gep-nested.ll +++ b/test/Transforms/IndVarSimplify/preserve-gep-nested.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; Exactly one getelementptr for each load+store. ; RUN: grep getelementptr %t | count 6 ; Each getelementptr using %struct.Q* %s as a base and not i8*. diff --git a/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll b/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll index a877ba048a..d249432eee 100644 --- a/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll +++ b/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S \ +; RUN: opt < %s -indvars -S \ ; RUN: | grep {\[%\]p.2.ip.1 = getelementptr \\\[3 x \\\[3 x double\\\]\\\]\\* \[%\]p, i64 2, i64 \[%\]tmp, i64 1} ; Indvars shouldn't expand this to diff --git a/test/Transforms/IndVarSimplify/preserve-gep.ll b/test/Transforms/IndVarSimplify/preserve-gep.ll index 8781d748fa..a27d20dc96 100644 --- a/test/Transforms/IndVarSimplify/preserve-gep.ll +++ b/test/Transforms/IndVarSimplify/preserve-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: not grep ptrtoint %t ; RUN: not grep inttoptr %t ; RUN: grep getelementptr %t | count 1 diff --git a/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll b/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll index 2727752ba0..9e46a78ffc 100644 --- a/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll +++ b/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: grep sext %t | count 1 ; RUN: grep phi %t | count 1 ; RUN: grep {phi i64} %t diff --git a/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll b/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll index 4f46cafbe5..a007ca60b0 100644 --- a/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll +++ b/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: not grep sext %t define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly { diff --git a/test/Transforms/IndVarSimplify/shrunk-constant.ll b/test/Transforms/IndVarSimplify/shrunk-constant.ll index 0214ce3680..623c528487 100644 --- a/test/Transforms/IndVarSimplify/shrunk-constant.ll +++ b/test/Transforms/IndVarSimplify/shrunk-constant.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalar-evolution -analyze -disable-output \ +; RUN: opt < %s -scalar-evolution -analyze -disable-output \ ; RUN: | grep {\\--> (zext i4 {-7,+,-8}<loop> to i32)} define fastcc void @foo() nounwind { diff --git a/test/Transforms/IndVarSimplify/signed-trip-count.ll b/test/Transforms/IndVarSimplify/signed-trip-count.ll index d16abd4513..1a5e64ddc1 100644 --- a/test/Transforms/IndVarSimplify/signed-trip-count.ll +++ b/test/Transforms/IndVarSimplify/signed-trip-count.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S > %t +; RUN: opt < %s -indvars -S > %t ; RUN: not grep sext %t ; RUN: grep phi %t | count 1 diff --git a/test/Transforms/IndVarSimplify/single-element-range.ll b/test/Transforms/IndVarSimplify/single-element-range.ll index 5500861873..60a9eef09e 100644 --- a/test/Transforms/IndVarSimplify/single-element-range.ll +++ b/test/Transforms/IndVarSimplify/single-element-range.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64" target triple = "armv6-apple-darwin10" diff --git a/test/Transforms/IndVarSimplify/sink-alloca.ll b/test/Transforms/IndVarSimplify/sink-alloca.ll index 38448d8ff5..3a6c683e7c 100644 --- a/test/Transforms/IndVarSimplify/sink-alloca.ll +++ b/test/Transforms/IndVarSimplify/sink-alloca.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | FileCheck %s +; RUN: opt < %s -indvars -S | FileCheck %s ; PR4775 ; Indvars shouldn't sink the alloca out of the entry block, even though diff --git a/test/Transforms/IndVarSimplify/sink-trapping.ll b/test/Transforms/IndVarSimplify/sink-trapping.ll index 7544e011ab..a18000c5f8 100644 --- a/test/Transforms/IndVarSimplify/sink-trapping.ll +++ b/test/Transforms/IndVarSimplify/sink-trapping.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | FileCheck %s --check-prefix=CHECK +; RUN: opt < %s -indvars -S | FileCheck %s --check-prefix=CHECK declare i1 @b() diff --git a/test/Transforms/IndVarSimplify/subtract.ll b/test/Transforms/IndVarSimplify/subtract.ll index db8136ac21..f45bdab4be 100644 --- a/test/Transforms/IndVarSimplify/subtract.ll +++ b/test/Transforms/IndVarSimplify/subtract.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -S | grep indvar +; RUN: opt < %s -indvars -S | grep indvar @G = global i64 0 ; <i64*> [#uses=1] diff --git a/test/Transforms/IndVarSimplify/tripcount_compute.ll b/test/Transforms/IndVarSimplify/tripcount_compute.ll index 63338213ac..6eaa4c5c6b 100644 --- a/test/Transforms/IndVarSimplify/tripcount_compute.ll +++ b/test/Transforms/IndVarSimplify/tripcount_compute.ll @@ -3,7 +3,7 @@ ; the exit value of the loop will be for some value, allowing us to substitute ; it directly into users outside of the loop, making the loop dead. ; -; RUN: opt %s -indvars -loop-deletion -simplifycfg -S | not grep br +; RUN: opt < %s -indvars -loop-deletion -simplifycfg -S | not grep br define i32 @linear_setne() { entry: diff --git a/test/Transforms/IndVarSimplify/tripcount_infinite.ll b/test/Transforms/IndVarSimplify/tripcount_infinite.ll index db457447c8..0495b50c3e 100644 --- a/test/Transforms/IndVarSimplify/tripcount_infinite.ll +++ b/test/Transforms/IndVarSimplify/tripcount_infinite.ll @@ -1,7 +1,7 @@ ; These tests have an infinite trip count. We obviously shouldn't remove the ; loops! :) ; -; RUN: opt %s -indvars -adce -simplifycfg -S | grep icmp | wc -l > %t2 +; RUN: opt < %s -indvars -adce -simplifycfg -S | grep icmp | wc -l > %t2 ; RUN: llvm-as < %s | llvm-dis | grep icmp | wc -l > %t1 ; RUN: diff %t1 %t2 diff --git a/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll b/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll index b4d510deca..0c8857f857 100644 --- a/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll +++ b/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars -instcombine -S | \ +; RUN: opt < %s -indvars -instcombine -S | \ ; RUN: grep {store i32 0} ; Test that -indvars can reduce variable stride IVs. If it can reduce variable ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without diff --git a/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll b/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll index 17bdf0be1d..98cfa34596 100644 --- a/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll +++ b/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -indvars +; RUN: opt < %s -indvars ; PR4315 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-f80:128:128" |