Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ModuleID
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 1 Jan 2013 13:57:25 +0000 (13:57 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 1 Jan 2013 13:57:25 +0000 (13:57 +0000)
This is done to avoid odd test failures, like the one fixed in r171243.

My previous regex was not good enough to find these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171343 91177308-0d34-0410-b5e6-96231b3b80d8

29 files changed:
test/Transforms/DeadArgElim/dbginfo.ll
test/Transforms/DeadStoreElimination/const-pointers.ll
test/Transforms/DeadStoreElimination/dominate.ll
test/Transforms/DeadStoreElimination/no-targetdata.ll
test/Transforms/GVN/2011-04-27-phioperands.ll
test/Transforms/GVN/edge.ll
test/Transforms/GVN/fpmath.ll
test/Transforms/GVN/pr12979.ll
test/Transforms/GVN/range.ll
test/Transforms/GVN/tbaa.ll
test/Transforms/GlobalOpt/unnamed-addr.ll
test/Transforms/Inline/2010-05-12-ValueMap.ll
test/Transforms/Inline/inline_minisize.ll
test/Transforms/Inline/noinline.ll
test/Transforms/Inline/recursive.ll
test/Transforms/InstCombine/compare-signs.ll
test/Transforms/InstCombine/intrinsics.ll
test/Transforms/JumpThreading/basic.ll
test/Transforms/LoopDeletion/2011-06-21-phioperands.ll
test/Transforms/MetaRenamer/metarenamer.ll
test/Transforms/SCCP/crash.ll
test/Transforms/SCCP/ipsccp-addr-taken.ll
test/Transforms/SCCP/undef-resolve.ll
test/Transforms/ScalarRepl/memcpy-align.ll
test/Transforms/ScalarRepl/phi-select.ll
test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll
test/Transforms/SimplifyCFG/PR9946.ll
test/Transforms/StripSymbols/block-address.ll
test/Transforms/TailCallElim/nocapture.ll

index dcbfaaa3d77b871838fe27255c8ae4aae932b0c7..b07b60d94831fe33178c2ab5e804f6855f6c0566 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -deadargelim -S | FileCheck %s
+; RUN: opt -deadargelim -S < %s | FileCheck %s
 ; PR14016
 
 ; Check that debug info metadata for subprograms stores pointers to
index 7d57804631daa2bfc209f8d0b5b7321c6cacc723..15976f9f10d40f36e2cff11fdb2c566c9205639d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -dse -S | FileCheck %s
+; RUN: opt -basicaa -dse -S < %s | FileCheck %s
 
 %t = type { i32 }
 
index 284fea4234fc7653dcb12fa29da6f00cf3acdb77..38cf1a066dae1a8623fff1468cd74ca508492d27 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt  %s -dse -disable-output
+; RUN: opt -dse -disable-output < %s
 ; test that we don't crash
 declare void @bar()
 
index 6c7f940316a0042c8f2fb885e7975746be297f97..4022d76dcb52d910a8f409090cb75d5973f9c865 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -dse -S | FileCheck %s
+; RUN: opt -basicaa -dse -S < %s | FileCheck %s
 
 declare void @test1f()
 
index 6e5075db7c8ef5e4fee05d12dcbfd0ef5f601ce6..42c46500c4837b85fa832c76293afe50ad6bb252 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -disable-output
+; RUN: opt -gvn -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"
 
index 32392f3ab0c8baf42c0d901155bda8973a9454d1..3a102b6c3539139cbf25a22d478ef13891b901f9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -S -o - | FileCheck %s
+; RUN: opt -gvn -S < %s | FileCheck %s
 
 define i32 @f1(i32 %x) {
   ; CHECK: define i32 @f1(
index 8ab285448fbbfaedc317c993f74a6993d2d1fd57..403df5c9008a9f6440856e0d8c20d1c08642a48e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -S -o - | FileCheck %s
+; RUN: opt -gvn -S < %s | FileCheck %s
 
 define double @test1(double %x, double %y) {
 ; CHECK: @test1(double %x, double %y)
index 669da9127d0b1570eae3524f26f7065f6cee251c..0198a56513ea907851fae71ce99a91c8c968f1a8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -gvn -S -o - | FileCheck %s
+; RUN: opt -gvn -S < %s | FileCheck %s
 
 define i32 @test1(i32 %x, i32 %y) {
 ; CHECK: @test1(i32 %x, i32 %y)
index 3759c415dabc4323f63fce368f7032679e514215..2115fe85661e5beb17f7a5b7ced7e5ea944609dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
+; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
 
 define i32 @test1(i32* %p) {
 ; CHECK: @test1(i32* %p)
index 90661c62507b142ccb6fc7a351cec2a5bcd2ec8a..85fe39a93b016d5af11d139ea4c12b2d55d87161 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
+; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
 
 define i32 @test1(i8* %p, i8* %q) {
 ; CHECK: @test1(i8* %p, i8* %q)
index ee75058731268658a951c228b0e5dde98f48417b..2ca91e50da2a7b4436b439940c5f4d7b9398774b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -globalopt -S | FileCheck %s
+; RUN: opt -globalopt -S < %s | FileCheck %s
 
 @a = internal global i32 0, align 4
 @b = internal global i32 0, align 4
index f9cc13f499b3020577181763d6e503f41ca024cb..f452907efd0737de9942ab7481163d05c1d9cf39 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -mergefunc -disable-output
+; RUN: opt -inline -mergefunc -disable-output < %s
 
 ; This tests for a bug where the inliner kept the functions in a ValueMap after
 ; it had completed and a ModulePass started to run. LLVM would crash deleting
index ae0b08be32bc1574422696b03832b5ab871cb611..3dddbcf3303d53b77b85572a3d481373e9bd03a4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -O2 -S -o - | FileCheck %s
+; RUN: opt -O2 -S < %s | FileCheck %s
 
 @data = common global i32* null, align 8
 
@@ -229,4 +229,4 @@ entry:
   %call1 = call i32 @fct2(i32 %tmp1)
   %add = add nsw i32 %call, %call1
   ret i32 %add
-}
\ No newline at end of file
+}
index dc3f6e003094aaa7ea9ce2656fbe9ed1a6595eb2..7667114b68e66ae15ac5633427ab9d2f863cc7b5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt -inline -S < %s | FileCheck %s
 ; PR6682
 declare void @foo() nounwind
 
index 5fe8d1639ca369c363ef18ad7d0d8a381a21708b..fe1c041af9a872b4a59296f3a009caab9c8dcc92 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt -inline -S < %s | FileCheck %s
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin10.0"
index f8e49110610a271c54b1526f4cb42b3eee7bf8d4..72db66e3ab0f6e5855f146106541fb721a7cdcfa 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -S | FileCheck %s
+; RUN: opt -instcombine -S < %s | FileCheck %s
 ; PR5438
 
 ; TODO: This should also optimize down.
index 382e6b38574d0413072c39032950359a04e3cace..93f0a953fd336f7574fe5b515bbb7304e6609ae1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -instcombine -S | FileCheck %s
+; RUN: opt -instcombine -S < %s | FileCheck %s
 
 %overflow.result = type {i8, i1}
 
index f889c02c6f3ab791f7e17760b7146f69370d9f7f..93fa29b006ed25536005f4acfdf3270899ae49cd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -jump-threading -S | FileCheck %s
+; RUN: opt -jump-threading -S < %s | FileCheck %s
 
 declare i32 @f1()
 declare i32 @f2()
index 40c6629e6f4f2ed60f167f51461df925318713af..cf9d8ce923ba341b77f5561cb3b8a5c21ddb5561 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -loop-deletion -disable-output
+; RUN: opt -loop-deletion -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-n8:16:32:64"
 
index ad41bcf50f194d76728cd80015b9234d553577c1..4020e10450813d0e87d947c783bd3b5467e15cdc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -metarenamer -S | FileCheck %s
+; RUN: opt -metarenamer -S < %s | FileCheck %s
 
 ; CHECK: target triple {{.*}}
 ; CHECK-NOT: {{^x*}}xxx{{^x*}}
index 2f6da1d726a0cc2ead4865b246ca6a8440b0191d..88528902d721008501c31033d64cb221ea58e8f3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp -S
+; RUN: opt -sccp -S < %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 target triple = "x86_64-apple-darwin10.0"
 
index c6572fa5d141b1941eff4b498f2f8cc37963c76b..b49da97ab2c0838fb50622c7e048117406bd7279 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -ipsccp -S | FileCheck %s
+; RUN: opt -ipsccp -S < %s | FileCheck %s
 ; PR7876
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 target triple = "x86_64-apple-darwin10.0.0"
index a3dddb799a6a0ff08efe5fed7a59d68b35710d35..a1a600c9607a04565b41fe867c9d9fdd5f0a531f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -sccp -S | FileCheck %s
+; RUN: opt -sccp -S < %s | FileCheck %s
 
 
 ; PR6940
index a7af208f4f39c0c5a805b1ae74045b778c0e09e1..6046e1295d9e9ed7c49956658b4a3eecd339ce91 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -S | FileCheck %s
+; RUN: opt -scalarrepl -S < %s | FileCheck %s
 ; PR6832
 target datalayout =
 "e-p:32:32:32-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-n32"
index ffe0b1dd5f473b8baed79156c060d301b517194a..5c21c3bd9f346ce586be1187a9be39d9daa45303 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -scalarrepl -S | FileCheck %s
+; RUN: opt -scalarrepl -S < %s | FileCheck %s
 ; Test promotion of allocas that have phis and select users.
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 target triple = "x86_64-apple-darwin10.2"
index 7bffa1a8e0e2f7a90ed86b2dc71abd21ddd04673..333336de76732a691bd6dba1aa1216b2e9cbc65b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -simplifycfg -disable-output
+; RUN: opt -simplifycfg -disable-output < %s
 ; END.
 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-unknown-linux-gnu"
index 4a61b846052eebe83e9325d9372faa9d29ffea77..c355a8f5cc98e36512b38896d09644f89d5fd9bd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt  %s -simplifycfg -disable-output
+; RUN: opt -simplifycfg -disable-output < %s
 
 @foo = external constant i32
 
index d22c6b1b157c9b83a0706afac68d3c13eb4856f7..113d4d94fa40bc8e7e35d23c2a15e9eba44b3ef3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -strip -S | FileCheck %s
+; RUN: opt -strip -S < %s | FileCheck %s
 ; PR10286
 
 @main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]
index 87cb9dd427b47187f2933a8a159c967f82b5dd77..e49d87cc4b5930f1c4e6ee7641c73734050358dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt %s -tailcallelim -S | FileCheck %s
+; RUN: opt -tailcallelim -S < %s | FileCheck %s
 ; XFAIL: *
 
 declare void @use(i8* nocapture, i8* nocapture)