[llvm-bugs] [Bug 45049] New: Segfault in SelectionDAG::LegalizeTypes when compiling optimized IR.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 27 10:20:05 PST 2020


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

            Bug ID: 45049
           Summary: Segfault in SelectionDAG::LegalizeTypes when compiling
                    optimized IR.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: rspringer at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23181
  --> https://bugs.llvm.org/attachment.cgi?id=23181&action=edit
Stack dump for the failure.

Apologies that I don't have a smaller reproducer; I've tried for ~a day to
reduce it without success.

Steps to reproduce:
1. Build (a recent?) llvm
2: Run:
  llc sample.unopt.ll
  -- The program compiles successfully.
3. Next run:
  llc sample.opt.ll

A segfault similar to that attached will be generated.

Regarding the IR: I added a lame main() to force llc/lli/etc. to accept the IR;
the crash still happens if compiling the IR as a library function.

Sorry I don't have more investigation results to report - I just didn't manage
to get too far yet (chasing down a lot of red herrings).

The offending IR will be attached immediately.

-- 
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/20200227/b62e693e/attachment.html>


More information about the llvm-bugs mailing list