[LLVMbugs] [Bug 20680] wrong code at -O3 on x86_64-linux-gnu (wrong nuw before indvars)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 3 16:05:32 PDT 2014


David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassignedclangbugs at nondot. |david.majnemer at gmail.com
                   |org                         |

--- Comment #3 from David Majnemer <david.majnemer at gmail.com> ---
Sanjay, your analysis was spot on.

indvars was trying to optimize the loop exit condition by using the
post-incremented induction variable. However, this is unsafe if the incremented
value has wrapping flags as it could be poison.

Fixed in r217102.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140903/2f6b562a/attachment.html>

More information about the llvm-bugs mailing list