[LLVMbugs] [Bug 16602] incorrect loop optimization at O2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 11 14:54:57 PDT 2013


halayli at gmail.com changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from halayli at gmail.com ---
Please read the generated assembly code. It's an empty label(LBB1_1) with a
jump to itself.

I can use global variables in this way if I don't care about race conditions.
The condition can be missed few times in the loop but eventually x will become
29 and the loop must exit. However, this is beyond the scope of this bug.

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/20130711/2bffe319/attachment.html>

More information about the llvm-bugs mailing list