Teach SCEVExpander to expand arithmetic involving pointers into GEP
[oota-llvm.git] / test / Transforms / LoopStrengthReduce / 2009-04-28-no-reduce-mul.ll
index f873b3d73e2cd886c4a80777e808c2f3c623f90c..e1c9642ce8186ca4d8fd6d5fb6fee8016fb02867 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | grep {mul.*%lsr.iv} | count 2
+; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis \
+; RUN:   | grep {getelementptr.*%lsr.iv.*%lsr.iv.*<i32\\*>}
 ; The multiply in bb2 must not be reduced to an add, as the sext causes the
 ; %1 argument to become negative after a while.
 ; ModuleID = '<stdin>'