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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to