diff options
| author | Andrew Trick <atrick@apple.com> | 2011-09-13 02:45:26 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2011-09-13 02:45:26 +0000 |
| commit | 57d8afde93dc414e262b055d8c55fa2bcf5b2e9a (patch) | |
| tree | 51cdea25404f110c5ff4f2a2a640a5252b25c1ca /llvm/test/Analysis/ScalarEvolution | |
| parent | 12ea1b72a41bcf96d301e9f8fb4abcf3f54283af (diff) | |
| download | bcm5719-llvm-57d8afde93dc414e262b055d8c55fa2bcf5b2e9a.tar.gz bcm5719-llvm-57d8afde93dc414e262b055d8c55fa2bcf5b2e9a.zip | |
This test only makes sense with -enable-iv-rewrite.
llvm-svn: 139576
Diffstat (limited to 'llvm/test/Analysis/ScalarEvolution')
| -rw-r--r-- | llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll index 474d564c70c..e90a55559d7 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll +++ b/llvm/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" |

