Adjust test case to not trigger the SCEV optimization committed in r302096
authorTobias Grosser <tobias@grosser.es>
Thu, 4 May 2017 08:56:54 +0000 (08:56 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 4 May 2017 08:56:54 +0000 (08:56 +0000)
This makes sure we still test the case that a PHI-NODE cannot be analyzed by
scalar evolution and consequently must be code generated explicitly.  As
Michael's optimization triggers only on a very specific "add %iv, %step"
pattern, just changing 'add' to 'mul' adds back test coverage.

llvm-svn: 302132

polly/test/Isl/CodeGen/scop_expander_insert_point.ll

index 4dddadf..f050c16 100644 (file)
@@ -29,7 +29,7 @@ for.body17:                                       ; preds = %for.body17, %for.bo
   %outvalue.141 = phi i64 [ undef, %for.body17.lr.ph ], [ %add19, %for.body17 ]
   %inptr.040 = phi i8* [ %add.ptr, %for.body17.lr.ph ], [ undef, %for.body17 ]
   %1 = load i8, i8* %inptr.040
-  %add19 = add nsw i64 0, %outvalue.141
+  %add19 = mul nsw i64 0, %outvalue.141
   br i1 false, label %for.body17, label %for.end22
 
 for.end22:                                        ; preds = %for.body17