summaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim/dup_tail.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/TailCallElim/dup_tail.ll')
-rw-r--r--test/Transforms/TailCallElim/dup_tail.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Transforms/TailCallElim/dup_tail.ll b/test/Transforms/TailCallElim/dup_tail.ll
index 42ac2f9dc4b9..f5b87f27644d 100644
--- a/test/Transforms/TailCallElim/dup_tail.ll
+++ b/test/Transforms/TailCallElim/dup_tail.ll
@@ -1,5 +1,8 @@
+; REQUIRES: asserts
; Duplicate the return into if.end to enable TCE.
-; RUN: opt %s -tailcallelim -stats -disable-output 2>&1 | grep "Number of return duplicated"
+; RUN: opt -tailcallelim -stats -disable-output < %s 2>&1 | FileCheck %s
+
+; CHECK: Number of return duplicated
define i32 @fib(i32 %n) nounwind ssp {
entry: