Skip to content

LLVM ERROR: Do not know how to split this operator's operand #116767

@abhishek-kaushik22

Description

@abhishek-kaushik22

Compiler Explorer: https://godbolt.org/z/s5rzrox6M

LLVM ERROR: Do not know how to split this operator's operand!

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -mtriple=x86_64 -mcpu=skx <source>
1.	Running pass 'Function Pass Manager' on module '<source>'.
2.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@foo'
 #0 0x000000000395b818 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-trunk/bin/llc+0x395b818)
 #1 0x00000000039593dc SignalHandler(int) Signals.cpp:0:0
 #2 0x00007b0ec3442520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x00007b0ec34969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x00007b0ec3442476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x00007b0ec34287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x000000000075cfb6 llvm::UniqueStringSaver::save(llvm::Twine const&) (.cold) StringSaver.cpp:0:0
 #7 0x00000000038b1938 (/opt/compiler-explorer/clang-trunk/bin/llc+0x38b1938)
 #8 0x00000000037dc806 llvm::DAGTypeLegalizer::SplitVectorOperand(llvm::SDNode*, unsigned int) (/opt/compiler-explorer/clang-trunk/bin/llc+0x37dc806)
 #9 0x00000000037afb7d llvm::DAGTypeLegalizer::run() (/opt/compiler-explorer/clang-trunk/bin/llc+0x37afb7d)
#10 0x00000000037b0041 llvm::SelectionDAG::LegalizeTypes() (/opt/compiler-explorer/clang-trunk/bin/llc+0x37b0041)
#11 0x0000000003718ff2 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-trunk/bin/llc+0x3718ff2)
#12 0x000000000371bcac llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x371bcac)
#13 0x000000000371d90f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x371d90f)
#14 0x0000000003709ce1 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x3709ce1)
#15 0x00000000029e60db llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#16 0x0000000002f3d912 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f3d912)
#17 0x0000000002f3dba1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f3dba1)
#18 0x0000000002f3f546 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-trunk/bin/llc+0x2f3f546)
#19 0x0000000000881e09 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#20 0x0000000000771476 main (/opt/compiler-explorer/clang-trunk/bin/llc+0x771476)
#21 0x00007b0ec3429d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x00007b0ec3429e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#23 0x0000000000879b1e _start (/opt/compiler-explorer/clang-trunk/bin/llc+0x879b1e)
Program terminated with signal: SIGSEGV
Compiler returned: 139

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions