diff options
Diffstat (limited to 'test/Transforms/TailCallElim')
11 files changed, 14 insertions, 13 deletions
diff --git a/test/Transforms/TailCallElim/accum_recursion.ll b/test/Transforms/TailCallElim/accum_recursion.ll index e8c28ec80672b..b2a9ed2813d62 100644 --- a/test/Transforms/TailCallElim/accum_recursion.ll +++ b/test/Transforms/TailCallElim/accum_recursion.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call +; RUN: opt < %s -tailcallelim -S | not grep call define i32 @factorial(i32 %x) { entry: diff --git a/test/Transforms/TailCallElim/accum_recursion_constant_arg.ll b/test/Transforms/TailCallElim/accum_recursion_constant_arg.ll index 4d63b595d7ccd..2a90cf3b22d73 100644 --- a/test/Transforms/TailCallElim/accum_recursion_constant_arg.ll +++ b/test/Transforms/TailCallElim/accum_recursion_constant_arg.ll @@ -3,7 +3,7 @@ ; go out to the anonymous users of the demo script for "suggesting" ; optimizations that should be done. :) -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call +; RUN: opt < %s -tailcallelim -S | not grep call define i32 @mul(i32 %x, i32 %y) { entry: diff --git a/test/Transforms/TailCallElim/ackermann.ll b/test/Transforms/TailCallElim/ackermann.ll index f65c66669e564..0c140ad681d50 100644 --- a/test/Transforms/TailCallElim/ackermann.ll +++ b/test/Transforms/TailCallElim/ackermann.ll @@ -1,6 +1,5 @@ ; This function contains two tail calls, which should be eliminated -; RUN: llvm-as < %s | \ -; RUN: opt -tailcallelim -stats -disable-output |& grep {2 tailcallelim} +; RUN: opt < %s -tailcallelim -stats -disable-output |& grep {2 tailcallelim} define i32 @Ack(i32 %M.1, i32 %N.1) { entry: diff --git a/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll b/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll index e20fe18d5adaf..5cc92e1b17306 100644 --- a/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll +++ b/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | \ +; RUN: opt < %s -tailcallelim -S | \ ; RUN: grep {call i32 @foo} declare void @bar(i32*) diff --git a/test/Transforms/TailCallElim/dont_reorder_load.ll b/test/Transforms/TailCallElim/dont_reorder_load.ll index 8fbe008387622..7b3b2326467af 100644 --- a/test/Transforms/TailCallElim/dont_reorder_load.ll +++ b/test/Transforms/TailCallElim/dont_reorder_load.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as <%s | opt -tailcallelim | llvm-dis | grep call | count 3 +; RUN: opt < %s -tailcallelim -S | grep call | count 3 ; PR4323 ; Several cases where tail call elimination should not move the load above the diff --git a/test/Transforms/TailCallElim/inf-recursion.ll b/test/Transforms/TailCallElim/inf-recursion.ll index fe00f4a764e95..a5f246d36ce1f 100644 --- a/test/Transforms/TailCallElim/inf-recursion.ll +++ b/test/Transforms/TailCallElim/inf-recursion.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | grep call +; RUN: opt < %s -tailcallelim -S | grep call ; Don't turn this into an infinite loop, this is probably the implementation ; of fabs and we expect the codegen to lower fabs. diff --git a/test/Transforms/TailCallElim/intervening-inst.ll b/test/Transforms/TailCallElim/intervening-inst.ll index ae4f50941f810..0c40bd5dc50d3 100644 --- a/test/Transforms/TailCallElim/intervening-inst.ll +++ b/test/Transforms/TailCallElim/intervening-inst.ll @@ -1,5 +1,5 @@ ; This function contains intervening instructions which should be moved out of the way -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call +; RUN: opt < %s -tailcallelim -S | not grep call define i32 @Test(i32 %X) { entry: diff --git a/test/Transforms/TailCallElim/move_alloca_for_tail_call.ll b/test/Transforms/TailCallElim/move_alloca_for_tail_call.ll index bd2b93f7a8d6e..a556ddb6eb1d8 100644 --- a/test/Transforms/TailCallElim/move_alloca_for_tail_call.ll +++ b/test/Transforms/TailCallElim/move_alloca_for_tail_call.ll @@ -1,9 +1,11 @@ -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | \ -; RUN: %prcontext alloca 1 | grep {i32 @foo} +; RUN: opt -tailcallelim %s -S | FileCheck %s +; PR615 declare void @bar(i32*) define i32 @foo() { +; CHECK: i32 @foo() +; CHECK-NEXT: alloca %A = alloca i32 ; <i32*> [#uses=2] store i32 17, i32* %A call void @bar( i32* %A ) diff --git a/test/Transforms/TailCallElim/reorder_load.ll b/test/Transforms/TailCallElim/reorder_load.ll index aeb9042bc79f6..7f8af7ea14765 100644 --- a/test/Transforms/TailCallElim/reorder_load.ll +++ b/test/Transforms/TailCallElim/reorder_load.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as <%s | opt -tailcallelim | llvm-dis | not grep call +; RUN: opt < %s -tailcallelim -S | not grep call ; PR4323 ; Several cases where tail call elimination should move the load above the call, diff --git a/test/Transforms/TailCallElim/return_constant.ll b/test/Transforms/TailCallElim/return_constant.ll index ab69a42b78513..48e5641bb57a3 100644 --- a/test/Transforms/TailCallElim/return_constant.ll +++ b/test/Transforms/TailCallElim/return_constant.ll @@ -1,7 +1,7 @@ ; Though this case seems to be fairly unlikely to occur in the wild, someone ; plunked it into the demo script, so maybe they care about it. ; -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | not grep call +; RUN: opt < %s -tailcallelim -S | not grep call define i32 @aaa(i32 %c) { entry: diff --git a/test/Transforms/TailCallElim/trivial_codegen_tailcall.ll b/test/Transforms/TailCallElim/trivial_codegen_tailcall.ll index 90a8163ee3213..3dddb013f7ce6 100644 --- a/test/Transforms/TailCallElim/trivial_codegen_tailcall.ll +++ b/test/Transforms/TailCallElim/trivial_codegen_tailcall.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | \ +; RUN: opt < %s -tailcallelim -S | \ ; RUN: grep {tail call void @foo} |