[llvm-bugs] [Bug 47041] New: After 7ab05d9a60b, Assertion failed: (&*It == &StartMI && "No new def between StartMI and EndMI."), function fixupIsDeadOrKill, file llvm/lib/Target/PowerPC/PPCInstrInfo.cpp, line 2715.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 7 13:27:40 PDT 2020


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

            Bug ID: 47041
           Summary: After 7ab05d9a60b, Assertion failed: (&*It == &StartMI
                    && "No new def between StartMI and EndMI."), function
                    fixupIsDeadOrKill, file
                    llvm/lib/Target/PowerPC/PPCInstrInfo.cpp, line 2715.
           Product: new-bugs
           Version: 11.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

After https://reviews.llvm.org/rG7ab05d9a60b / https://reviews.llvm.org/D81723
("[PowerPC] fold addi's imm operand to its imm form consumer's displacement"),
building clang/lib/Serialization/ASTReader.cpp for target
powerpc-unknown-freebsd13.0 crashes with:

ssertion failed: (&*It == &StartMI && "No new def between StartMI and EndMI."),
function fixupIsDeadOrKill, file
/home/dim/src/llvm/llvm-project/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp, line
2715.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
/home/dim/ins/llvmorg-11-init-18635-g7ab05d9a60b/bin/clang -cc1 -triple
powerpc-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name
ASTReader.cpp -mrelocation-model static -mframe-pointer=none -fno-rounding-math
-mconstructor-aliases -munwind-tables -target-cpu ppc -target-feature
+secure-plt -mfloat-abi hard -fno-split-dwarf-inlining
-debug-info-kind=line-tables-only -dwarf-version=4 -debugger-tuning=gdb
-ffunction-sections -fdata-sections -sys-header-deps -D CLANG_ENABLE_ARCMT -D
CLANG_ENABLE_STATIC_ANALYZER -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS
-D __STDC_LIMIT_MACROS -D HAVE_VCS_VERSION_INC -D
LLVM_DEFAULT_TARGET_TRIPLE="powerpc-unknown-freebsd13.0" -D
LLVM_HOST_TRIPLE="powerpc-unknown-freebsd13.0" -D DEFAULT_SYSROOT="" -D
LLVM_TARGET_ENABLE_AARCH64 -D LLVM_TARGET_ENABLE_ARM -D LLVM_TARGET_ENABLE_MIPS
-D LLVM_TARGET_ENABLE_POWERPC -D LLVM_TARGET_ENABLE_RISCV -D
LLVM_TARGET_ENABLE_X86 -D LLVM_NATIVE_ASMPARSER=LLVMInitializePowerPCAsmParser
-D LLVM_NATIVE_ASMPRINTER=LLVMInitializePowerPCAsmPrinter -D
LLVM_NATIVE_DISASSEMBLER=LLVMInitializePowerPCDisassembler -D
LLVM_NATIVE_TARGET=LLVMInitializePowerPCTarget -D
LLVM_NATIVE_TARGETINFO=LLVMInitializePowerPCTargetInfo -D
LLVM_NATIVE_TARGETMC=LLVMInitializePowerPCTargetMC -O2 -Wno-format-zero-length
-Wno-c++11-extensions -std=c++14 -fdeprecated-macro -ferror-limit 19
-stack-protector 2 -fno-rtti -fno-signed-char -fgnuc-version=4.2.1
-vectorize-loops -vectorize-slp -faddrsig -x c++ ASTReader-eb69c1.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'ASTReader-eb69c1.cpp'.
4.      Running pass 'PowerPC MI Peephole Optimization' on function
'@_ZN5clang9ASTReader16ReadVersionTupleERKN4llvm11SmallVectorIyLj64EEERj'
#0 0x0000000002fc8688 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/dim/ins/llvmorg-11-init-18635-g7ab05d9a60b/bin/clang+0x2fc8688)
#1 0x0000000002fc64e8 llvm::sys::RunSignalHandlers()
(/home/dim/ins/llvmorg-11-init-18635-g7ab05d9a60b/bin/clang+0x2fc64e8)
#2 0x0000000002fc8de6 SignalHandler(int)
(/home/dim/ins/llvmorg-11-init-18635-g7ab05d9a60b/bin/clang+0x2fc8de6)
#3 0x00000008055d6a30 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3

The full cpp file is ~13M and a preprocessed version is ~7.5M, so I am reducing
test case now.

In any case, llvmorg-11-init-18634-gc8fae2bb4af compiles this successfully,
while llvmorg-11-init-18635-g7ab05d9a60b asserts.

-- 
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/20200807/f994ae0f/attachment-0001.html>


More information about the llvm-bugs mailing list