[llvm-bugs] [Bug 47189] New: Infinite loop inside static function incorrectly optimized away

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 16 10:58:09 PDT 2020


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

            Bug ID: 47189
           Summary: Infinite loop inside static function incorrectly
                    optimized away
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: butchelor at survarium.xyz
                CC: llvm-bugs at lists.llvm.org

Created attachment 23855
  --> https://bugs.llvm.org/attachment.cgi?id=23855&action=edit
C demo program

LLVM incorrectly optimizes infinite loop and surrounding function when static
keyword is used. Behavior can be observed using optimization level -O1 or
higher.

-- 
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/20200816/7ca7dff2/attachment.html>


More information about the llvm-bugs mailing list