[PATCH] Fix for bug in indvars/ SCEV generating infinite loop (pr18886)

Andrew Trick atrick at apple.com
Thu May 22 09:51:38 PDT 2014


I added a test case to ScalarEvolution/max-trip-count.ll to directly test -scalar-evolution -analyze.
You could similarly adapt your test case and add it to the same file.

+; CHECK: Loop %for.body.i: <multiple exits> Unpredictable backedge-taken count. 
+; CHECK: Loop %for.body.i: max backedge-taken count is 1

http://reviews.llvm.org/D3837






More information about the llvm-commits mailing list