diff options
| author | Andrew Trick <atrick@apple.com> | 2012-03-22 17:09:31 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2012-03-22 17:09:31 +0000 |
| commit | bd11257df71a3dfc638f8a213098bc55a42bff2e (patch) | |
| tree | 51518695a2d8282479269de5bdc47312c2dc2a2c /llvm/test | |
| parent | db149f9e73b7a1e7100eba7f81e2aaeba4ee2f35 (diff) | |
| download | bcm5719-llvm-bd11257df71a3dfc638f8a213098bc55a42bff2e.tar.gz bcm5719-llvm-bd11257df71a3dfc638f8a213098bc55a42bff2e.zip | |
Test scalar evolution directly instead of testing the result of
canonical indvars.
llvm-svn: 153256
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll index e90a55559d7..d9b83a929aa 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll +++ b/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll @@ -1,14 +1,12 @@ -; 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) -; because it should be able to prove that the comparison is guarded -; 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: +; RUN: opt < %s -analyze -scalar-evolution -S | FileCheck %s + +; Indvars should be able to find the trip count for the bb6 loop +; without using a maximum calculation (icmp, select) because it should +; be able to prove that the comparison is guarded by an appropriate +; conditional branch. Unfortunately, indvars is not yet able to find +; the comparison for the other two loops in this testcase. +; +; CHECK: Loop %bb6: backedge-taken count is (-1 + %w) 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" |

