diff options
Diffstat (limited to 'test/Transforms/TailDup')
-rw-r--r-- | test/Transforms/TailDup/2003-06-24-Simpleloop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2003-08-23-InvalidatedPointers.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2004-04-01-DemoteRegToStack.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2008-05-13-InfiniteLoop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/2009-07-31-phicrash.ll | 14 | ||||
-rw-r--r-- | test/Transforms/TailDup/MergeTest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/PHIUpdateTest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/basictest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/basictest2.ll | 2 | ||||
-rw-r--r-- | test/Transforms/TailDup/if-tail-dup.ll | 4 |
13 files changed, 27 insertions, 13 deletions
diff --git a/test/Transforms/TailDup/2003-06-24-Simpleloop.ll b/test/Transforms/TailDup/2003-06-24-Simpleloop.ll index 5c3b539..d7e45af 100644 --- a/test/Transforms/TailDup/2003-06-24-Simpleloop.ll +++ b/test/Transforms/TailDup/2003-06-24-Simpleloop.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define void @motion_result7() { entry: diff --git a/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll index 705f8bc..90f4990 100644 --- a/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll +++ b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define i32 @sum() { entry: diff --git a/test/Transforms/TailDup/2003-08-23-InvalidatedPointers.ll b/test/Transforms/TailDup/2003-08-23-InvalidatedPointers.ll index 1fae77b..efe9eae 100644 --- a/test/Transforms/TailDup/2003-08-23-InvalidatedPointers.ll +++ b/test/Transforms/TailDup/2003-08-23-InvalidatedPointers.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define i32 @sell_haggle() { entry: diff --git a/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll b/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll index e464713..dc64923 100644 --- a/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll +++ b/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define i32 @foo() { entry: diff --git a/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.ll b/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.ll index 81624ff..c1e5f73 100644 --- a/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.ll +++ b/test/Transforms/TailDup/2004-04-01-DemoteRegToStack.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define void @interpret() { entry: diff --git a/test/Transforms/TailDup/2008-05-13-InfiniteLoop.ll b/test/Transforms/TailDup/2008-05-13-InfiniteLoop.ll index a67e8cd..3e4f0b7 100644 --- a/test/Transforms/TailDup/2008-05-13-InfiniteLoop.ll +++ b/test/Transforms/TailDup/2008-05-13-InfiniteLoop.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate | llc +; RUN: opt < %s -tailduplicate | llc ; PR2323 define i32 @func_27(i32 %p_28) nounwind { diff --git a/test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll b/test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll index c29e7d4..88a5656 100644 --- a/test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll +++ b/test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -taildup-threshold=3 -stats -disable-output | not grep tailduplicate +; RUN: opt < %s -tailduplicate -taildup-threshold=3 -stats -disable-output | not grep tailduplicate ; XFAIL: * define i32 @foo(i32 %l) nounwind { diff --git a/test/Transforms/TailDup/2009-07-31-phicrash.ll b/test/Transforms/TailDup/2009-07-31-phicrash.ll new file mode 100644 index 0000000..ad1a040 --- /dev/null +++ b/test/Transforms/TailDup/2009-07-31-phicrash.ll @@ -0,0 +1,14 @@ +; RUN: opt < %s -tailduplicate -disable-output +; PR4662 + +define void @a() { +BB: + br label %BB6 + +BB6: + %tmp9 = phi i64 [ 0, %BB ], [ 5, %BB34 ] + br label %BB34 + +BB34: + br label %BB6 +} diff --git a/test/Transforms/TailDup/MergeTest.ll b/test/Transforms/TailDup/MergeTest.ll index 0a3ab6d..2224283 100644 --- a/test/Transforms/TailDup/MergeTest.ll +++ b/test/Transforms/TailDup/MergeTest.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -taildup-threshold=2 | llvm-dis | grep add | not grep uses=1 +; RUN: opt < %s -tailduplicate -taildup-threshold=2 -S | grep add | not grep uses=1 define i32 @test1(i1 %C, i32 %A, i32* %P) { entry: diff --git a/test/Transforms/TailDup/PHIUpdateTest.ll b/test/Transforms/TailDup/PHIUpdateTest.ll index 6f86587..38d8ebf 100644 --- a/test/Transforms/TailDup/PHIUpdateTest.ll +++ b/test/Transforms/TailDup/PHIUpdateTest.ll @@ -1,6 +1,6 @@ ; This test checks to make sure phi nodes are updated properly ; -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define i32 @test(i1 %c, i32 %X, i32 %Y) { br label %L diff --git a/test/Transforms/TailDup/basictest.ll b/test/Transforms/TailDup/basictest.ll index ef36890..94f5d87 100644 --- a/test/Transforms/TailDup/basictest.ll +++ b/test/Transforms/TailDup/basictest.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output declare void @__main() diff --git a/test/Transforms/TailDup/basictest2.ll b/test/Transforms/TailDup/basictest2.ll index f79d718..81a996a 100644 --- a/test/Transforms/TailDup/basictest2.ll +++ b/test/Transforms/TailDup/basictest2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailduplicate -disable-output +; RUN: opt < %s -tailduplicate -disable-output define void @ab() { entry: diff --git a/test/Transforms/TailDup/if-tail-dup.ll b/test/Transforms/TailDup/if-tail-dup.ll index 7c4d9c2..2e4f5be 100644 --- a/test/Transforms/TailDup/if-tail-dup.ll +++ b/test/Transforms/TailDup/if-tail-dup.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | opt -tailduplicate | \ -; RUN: llc -march=x86 -o %t -f +; RUN: opt < %s -tailduplicate | \ +; RUN: llc -march=x86 -o %t ; RUN: grep {\\\<je\\\>} %t ; RUN: not grep jmp %t ; END. |