http://llvm.org/bugs/show_bug.cgi?id=19659

Sanjay Patel <spatel+l...@rotateright.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Sanjay Patel <spatel+l...@rotateright.com> ---
Resolving as a duplicate of bug 18223.

The IR going into indvars has:
define i32 @main() #0 {
...
; <label>:3                                       ; preds = %12, %.split.us
  %4 = phi i32 [ 0, %.split.us ], [ %13, %12 ]
  %5 = phi i32 [ 0, %.split.us ], [ %13, %12 ]
  %6 = add i32 %5, -1
  %7 = icmp ult i32 %6, %4

Before r209487, indvars/SCEV transforms the icmp ult:
INDVARS: Eliminated comparison:   %7 = icmp ult i32 %6, %4

because both sides of the icmp are SCEVAddRecExprs, and we incorrectly
determine that the comparison is always false.

After r209487, we don't change the icmp and the output is correct for the
reduced IR test case as well as the original C test case.

*** This bug has been marked as a duplicate of bug 18223 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to