[llvm-bugs] [Bug 42728] New: compiler infinite loop aliasing bcmp to memcmp

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 23 14:07:17 PDT 2019


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

            Bug ID: 42728
           Summary: compiler infinite loop aliasing bcmp to memcmp
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: clement.courbet at gmail.com, jyknight at google.com,
                    llvm-bugs at lists.llvm.org, srhines at google.com

Created attachment 22276
  --> https://bugs.llvm.org/attachment.cgi?id=22276&action=edit
string.i

Possibly related to https://bugs.llvm.org/show_bug.cgi?id=41035.

declaring bcmp as an alias to memcmp, then using memcmp in a way that it would
be lowered to a bcmp is resulting in the compiler not exiting.

Attached is a test case. Observable at -O1 and above, but not -O0.

Instead, I can work around this with an explicit tail call, but it's curious as
to why the addition of the alias causing the compiler to hang.

-- 
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/20190723/1ad5b608/attachment-0001.html>


More information about the llvm-bugs mailing list