indvars test only relevant for -enable-iv-rewrite.
authorAndrew Trick <atrick@apple.com>
Mon, 12 Sep 2011 22:59:00 +0000 (22:59 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 12 Sep 2011 22:59:00 +0000 (22:59 +0000)
Otherwise this case is now covered by no-iv-rewrite.ll.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139552 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/IndVarSimplify/complex-scev.ll

index 434c4ec995251814a190539a5b4eeaf6f74cbf86..395377e3a48eba7477376a744ba6d3fd23abc703 100644 (file)
@@ -1,7 +1,9 @@
 ; The i induction variable looks like a wrap-around, but it really is just
 ; a simple affine IV.  Make sure that indvars eliminates it.
 
-; RUN: opt < %s -indvars -S | grep phi | count 1
+; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
+; CHECK: phi
+; CHECK-NOT: phi
 
 define void @foo() {
 entry: