[llvm-bugs] [Bug 47752] New: infinite recursion with opt -instcombine

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 7 01:52:46 PDT 2020


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

            Bug ID: 47752
           Summary: infinite recursion with opt -instcombine
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at lists.llvm.org

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

llvm commit: 1aa8e6a51a0eb

Reproduce with:
 opt -S -o - bbi-48251.ll -instcombine

Result:

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ../../master/llvm/build-all/bin/opt -S -o -
bbi-48251.ll -instcombine 
1.      Running pass 'Function Pass Manager' on module 'bbi-48251.ll'.
2.      Running pass 'Combine redundant instructions' on function '@g'
  #0 0x00000000027d2723 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(../../master/llvm/build-all/bin/opt+0x27d2723)
  #1 0x00000000027d03ee llvm::sys::RunSignalHandlers()
(../../master/llvm/build-all/bin/opt+0x27d03ee)
  #2 0x00000000027d2bdc SignalHandler(int)
(../../master/llvm/build-all/bin/opt+0x27d2bdc)
  #3 0x00007fadc69978a0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x128a0)
  #4 0x00000000022e25f2 llvm::Negator::visitImpl(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e25f2)
  #5 0x00000000022e4323 llvm::Negator::negate(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e4323)
  #6 0x00000000022e34e1 llvm::Negator::visitImpl(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e34e1)
  #7 0x00000000022e4323 llvm::Negator::negate(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e4323)

etc

This starts happening with commit 67266d879c7 from April 22:

    [InstCombine] Negator: shufflevector is negatible

    All these folds are correct as per alive-tv

-- 
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/20201007/9aab44e0/attachment-0001.html>


More information about the llvm-bugs mailing list