[llvm-bugs] [Bug 50255] New: llc -O1 crashes in 'Canonicalize Freeze Instructions in Loops' with tons of SCEV calls on the call stack

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 7 01:22:13 PDT 2021


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

            Bug ID: 50255
           Summary: llc -O1 crashes in 'Canonicalize Freeze Instructions
                    in Loops' with tons of SCEV calls on the call stack
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24840
  --> https://bugs.llvm.org/attachment.cgi?id=24840&action=edit
bbi-35733_2.ll reproducer

Reproduce with:
 llc -O1 -o /dev/null bbi-35733_2.ll

Result:
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /repo/uabelho/master-github/llvm/build-all/bin/llc
-O1 -o /dev/null bbi-35733_2.ll
1.      Running pass 'Function Pass Manager' on module 'bbi-35733_2.ll'.
2.      Running pass 'Loop Pass Manager' on function '@g'
3.      Running pass 'Canonicalize Freeze Instructions in Loops' on basic block
'%for.body'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x23)[0x2803f73]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm3sys17RunSignalHandlersEv+0xee)[0x2801c2e]
/repo/uabelho/master-github/llvm/build-all/bin/llc[0x2804436]
/lib64/libpthread.so.0(+0xf630)[0x7f464da20630]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution19createAddRecFromPHIEPNS_7PHINodeE+0x1)[0x19d5231]
[...]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution10createSCEVEPNS_5ValueE+0x1736)[0x19cf916]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution7getSCEVEPNS_5ValueE+0x47)[0x19cace7]
Segmentation fault

-- 
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/20210507/1677fb64/attachment.html>


More information about the llvm-bugs mailing list