[llvm-bugs] [Bug 31683] New: Missed deadcode elimination with function pointers

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 18 13:26:54 PST 2017


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

            Bug ID: 31683
           Summary: Missed deadcode elimination with function pointers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric.huhtala at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

See here: https://godbolt.org/g/xQD64y

If I uncomment the first call, clang determines that it's all deadcode, and
generates the same "xor eax, eax" as gcc. With the first call commented out,
clang still assigns to the array.

-- 
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/20170118/a878c6dc/attachment.html>


More information about the llvm-bugs mailing list