diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-08 22:34:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-08 22:34:10 +0000 |
commit | 3e054fe9efc64596534bbae0d1634ed15181d642 (patch) | |
tree | 8da773058a2492290d4648d8f5dba5c3b8382142 /test/Transforms/JumpThreading | |
parent | f31657990191d5b2bb1eb3bd95020fc3375f0e3d (diff) | |
download | external_llvm-3e054fe9efc64596534bbae0d1634ed15181d642.zip external_llvm-3e054fe9efc64596534bbae0d1634ed15181d642.tar.gz external_llvm-3e054fe9efc64596534bbae0d1634ed15181d642.tar.bz2 |
Use opt -S instead of piping bitcode output through llvm-dis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading')
-rw-r--r-- | test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/and-and-cond.ll | 4 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/and-cond.ll | 4 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/basic.ll | 4 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/branch-no-const.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/compare.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/dup-cond.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/no-irreducible-loops.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/thread-loads.ll | 2 | ||||
-rw-r--r-- | test/Transforms/JumpThreading/undef.ll | 4 |
10 files changed, 14 insertions, 14 deletions
diff --git a/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll b/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll index 216dacb..9968f64 100644 --- a/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll +++ b/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -jump-threading -simplifycfg | llvm-dis | grep {ret i32 0} +; RUN: llvm-as < %s | opt -jump-threading -simplifycfg -S | grep {ret i32 0} ; PR3138 define i32 @jt() { diff --git a/test/Transforms/JumpThreading/and-and-cond.ll b/test/Transforms/JumpThreading/and-and-cond.ll index 1135ac6..58ca1770 100644 --- a/test/Transforms/JumpThreading/and-and-cond.ll +++ b/test/Transforms/JumpThreading/and-and-cond.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg | llvm-dis | grep {ret i32 %v1} +; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1} ; There should be no uncond branches left. -; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg | llvm-dis | not grep {br label} +; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label} declare i32 @f1() declare i32 @f2() diff --git a/test/Transforms/JumpThreading/and-cond.ll b/test/Transforms/JumpThreading/and-cond.ll index 38d3c53..be0d684 100644 --- a/test/Transforms/JumpThreading/and-cond.ll +++ b/test/Transforms/JumpThreading/and-cond.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg | llvm-dis | grep {ret i32 %v1} +; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1} ; There should be no uncond branches left. -; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg | llvm-dis | not grep {br label} +; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label} declare i32 @f1() declare i32 @f2() diff --git a/test/Transforms/JumpThreading/basic.ll b/test/Transforms/JumpThreading/basic.ll index 7f851bd..4d3b4ae 100644 --- a/test/Transforms/JumpThreading/basic.ll +++ b/test/Transforms/JumpThreading/basic.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | grep {ret i32 %v1} +; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1} ; There should be no uncond branches left. -; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | not grep {br label} +; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label} declare i32 @f1() declare i32 @f2() diff --git a/test/Transforms/JumpThreading/branch-no-const.ll b/test/Transforms/JumpThreading/branch-no-const.ll index 4ee3e58..a354056 100644 --- a/test/Transforms/JumpThreading/branch-no-const.ll +++ b/test/Transforms/JumpThreading/branch-no-const.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -jump-threading | llvm-dis | not grep phi +; RUN: opt %s -jump-threading -S | not grep phi declare i8 @mcguffin() diff --git a/test/Transforms/JumpThreading/compare.ll b/test/Transforms/JumpThreading/compare.ll index 4edd4a9..fdbfaff 100644 --- a/test/Transforms/JumpThreading/compare.ll +++ b/test/Transforms/JumpThreading/compare.ll @@ -1,5 +1,5 @@ ; There should be no phi nodes left. -; RUN: opt %s -jump-threading -simplifycfg -mem2reg | llvm-dis | not grep {phi i32} +; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32} declare i32 @f1() declare i32 @f2() diff --git a/test/Transforms/JumpThreading/dup-cond.ll b/test/Transforms/JumpThreading/dup-cond.ll index 00e17cb..4681276 100644 --- a/test/Transforms/JumpThreading/dup-cond.ll +++ b/test/Transforms/JumpThreading/dup-cond.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -jump-threading -die | llvm-dis | grep icmp | count 1 +; RUN: opt %s -jump-threading -die -S | grep icmp | count 1 declare void @f1() declare void @f2() diff --git a/test/Transforms/JumpThreading/no-irreducible-loops.ll b/test/Transforms/JumpThreading/no-irreducible-loops.ll index 4278c3b..3e283f7 100644 --- a/test/Transforms/JumpThreading/no-irreducible-loops.ll +++ b/test/Transforms/JumpThreading/no-irreducible-loops.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg | llvm-dis > %t +; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t ; RUN: grep {volatile store} %t | count 3 ; RUN: not grep {br label} %t diff --git a/test/Transforms/JumpThreading/thread-loads.ll b/test/Transforms/JumpThreading/thread-loads.ll index 149acf0..d0ca05f 100644 --- a/test/Transforms/JumpThreading/thread-loads.ll +++ b/test/Transforms/JumpThreading/thread-loads.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -jump-threading -mem2reg -simplifycfg | llvm-dis | grep {ret i32 1} +; RUN: opt %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1} ; rdar://6402033 ; Test that we can thread through the block with the partially redundant load (%2). diff --git a/test/Transforms/JumpThreading/undef.ll b/test/Transforms/JumpThreading/undef.ll index 8c285a3..e09af0a 100644 --- a/test/Transforms/JumpThreading/undef.ll +++ b/test/Transforms/JumpThreading/undef.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -jump-threading | llvm-dis | not grep {br } -; RUN: opt %s -jump-threading | llvm-dis | grep {ret i32} | count 1 +; RUN: opt %s -jump-threading -S | not grep {br } +; RUN: opt %s -jump-threading -S | grep {ret i32} | count 1 define i32 @test(i1 %cond) { br i1 undef, label %T1, label %F1 |