[LLVMbugs] [Bug 24158] -03 Optimization causes function to execute twice

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 16 19:10:25 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24158

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Ah, that's the problem.

The call to reaper() will be deleted because it has no side-effects (even
though it might not actually ever terminate, this doesn't matter, because the
language rules permit us to delete infinite loops that don't "make progress"
through a side-effect / atomic access).

Thus setup_and_run_reaper returns twice when built with optimizations enabled
(or if map->stop becomes true).

-- 
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/20150717/8fac7f16/attachment.html>


More information about the llvm-bugs mailing list