summaryrefslogtreecommitdiff
path: root/test/Analysis
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-09-13 02:45:26 +0000
committerAndrew Trick <atrick@apple.com>2011-09-13 02:45:26 +0000
commit2e95d76f8c8578c6942a11e28c748d7fadd87c5f (patch)
tree5842eb3f896278731da3cf1e206e83c8efd8083a /test/Analysis
parent885f1a0c048e07fca56bc256702c58eae50ae71f (diff)
downloadllvm-2e95d76f8c8578c6942a11e28c748d7fadd87c5f.tar.gz
llvm-2e95d76f8c8578c6942a11e28c748d7fadd87c5f.tar.bz2
llvm-2e95d76f8c8578c6942a11e28c748d7fadd87c5f.tar.xz
This test only makes sense with -enable-iv-rewrite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r--test/Analysis/ScalarEvolution/avoid-smax-1.ll7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/test/Analysis/ScalarEvolution/avoid-smax-1.ll
index 474d564c70..e90a55559d 100644
--- a/test/Analysis/ScalarEvolution/avoid-smax-1.ll
+++ b/test/Analysis/ScalarEvolution/avoid-smax-1.ll
@@ -1,6 +1,4 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: grep select %t | count 2
-; RUN: grep {icmp ne i32.\* } %t
+; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
; Indvars should be able to insert a canonical induction variable
; for the bb6 loop without using a maximum calculation (icmp, select)
@@ -8,6 +6,9 @@
; by an appropriate conditional branch. Unfortunately, indvars is
; not yet able to find the comparison for the other two loops in
; this testcase.
+; CHECK: entry:
+; CHECK-NOT: select
+; CHECK: bb6:
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-darwin9"