indvars: Added getInsertPointForUses to find a valid place to truncate the IV.
[oota-llvm.git] / test / Transforms / IndVarSimplify / loop_evaluate_6.ll
index 35fbf52b7ef073ff0e329a569efaf3b31d3e320d..da38de538f7bf60bc0e4111134f2454d9686027b 100644 (file)
@@ -1,7 +1,9 @@
-; RUN: llvm-as < %s | opt -indvars -loop-deletion | llvm-dis | grep phi | count 1
+; RUN: opt < %s -indvars -loop-deletion -S | grep phi | count 1
+; XFAIL: *
 
-; Indvars should be able to evaluate this loop, allowing loop deletion
-; to delete it.
+; Indvars can't evaluate this loop, because ScalarEvolution can't compute
+; an exact trip count, because it doesn't know if dividing by the stride will
+; have a remainder. It could be done with more aggressive VRP though.
 
 define i32 @test(i32 %x_offs) nounwind readnone {
 entry: