llvm.org GIT mirror llvm / 857ad22
Conditionalize indvars test that relies on SCEV expansion of geps, which is only relevant with canonical IVs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139556 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
1 changed file(s) with 13 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt < %s -indvars -S > %t
1 ; RUN: grep add %t | count 6
2 ; RUN: grep sub %t | count 2
3 ; RUN: grep mul %t | count 6
0 ; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
1 ; CHECK: define void @foo
2 ; CHECK: mul
3 ; CHECK: mul
4 ; CHECK: mul
5 ; CHECK: add
6 ; CHECK: sub
7 ; CHECK: define void @bar
8 ; CHECK: mul
9 ; CHECK: mul
10 ; CHECK: mul
11 ; CHECK: add
12 ; CHECK: sub
413
514 define void @foo(i64 %n, i64 %m, i64 %o, double* nocapture %p) nounwind {
615 entry: