[llvm-commits] [llvm] r139556 - /llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll

Andrew Trick atrick at apple.com
Mon Sep 12 16:13:57 PDT 2011


Author: atrick
Date: Mon Sep 12 18:13:57 2011
New Revision: 139556

URL: http://llvm.org/viewvc/llvm-project?rev=139556&view=rev
Log:
Conditionalize indvars test that relies on SCEV expansion of geps,
which is only relevant with canonical IVs

Modified:
    llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll

Modified: llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll?rev=139556&r1=139555&r2=139556&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll (original)
+++ llvm/trunk/test/Transforms/IndVarSimplify/gep-with-mul-base.ll Mon Sep 12 18:13:57 2011
@@ -1,7 +1,16 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: grep add %t | count 6
-; RUN: grep sub %t | count 2
-; RUN: grep mul %t | count 6
+; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
+; CHECK: define void @foo
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+; CHECK: add
+; CHECK: sub
+; CHECK: define void @bar
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+; CHECK: add
+; CHECK: sub
 
 define void @foo(i64 %n, i64 %m, i64 %o, double* nocapture %p) nounwind {
 entry:





More information about the llvm-commits mailing list