| Issue |
244129
|
| Summary |
[X86][CodeGen] error in backend: Cannot emit physreg copy instruction
|
| Labels |
backend:X86,
llvm:codegen,
crash-on-valid
|
| Assignees |
|
| Reporter |
Andarwinux
|
https://godbolt.org/z/Yvx6do5Pa
```llvm
define zeroext i1 @_ZN4x2659FrameData6createERK10x265_paramRKNS_3SPSEi() {
store <8 x ptr> splat (ptr null), ptr null, align 8
ret i1 false
}
```
llc -O0 -mcpu=tigerlake
```
LLVM ERROR: Cannot emit physreg copy instruction
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -O0 -mcpu=tigerlake <source>
1. Running pass 'Function Pass Manager' on module '<source>'.
2. Running pass 'Post-RA pseudo instruction expansion pass' on function '@_ZN4x2659FrameData6createERK10x265_paramRKNS_3SPSEi'
#0 0x0000000000844568 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x844568)
#1 0x0000000000841354 llvm::sys::RunSignalHandlers() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x841354)
#2 0x00000000008414ce SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007e00d9e45330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#4 0x00007e00d9e9ec0c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9ec0c)
#5 0x00007e00d9e4527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
#6 0x00007e00d9e288ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
#7 0x00000000007cbf45 (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x7cbf45)
#8 0x000000000086baf1 (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x86baf1)
#9 0x00000000029185c4 llvm::X86InstrInfo::copyPhysReg(llvm::MachineBasicBlock&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc const&, llvm::Register, llvm::Register, bool, bool, bool) const (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x29185c4)
#10 0x00000000040dc1e3 llvm::TargetInstrInfo::lowerCopy(llvm::MachineInstr*) const (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x40dc1e3)
#11 0x0000000003c5e66d (anonymous namespace)::ExpandPostRA::run(llvm::MachineFunction&) (.constprop.0) ExpandPostRAPseudos.cpp:0:0
#12 0x0000000003c5eed4 (anonymous namespace)::ExpandPostRALegacy::runOnMachineFunction(llvm::MachineFunction&) ExpandPostRAPseudos.cpp:0:0
#13 0x0000000003da9a8f llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#14 0x0000000005843973 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x5843973)
#15 0x0000000005843db1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x5843db1)
#16 0x0000000005844779 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x5844779)
#17 0x000000000090726b compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) llcdriver.cpp:0:0
#18 0x00000000009083eb llcMain (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x9083eb)
#19 0x00000000007d19ac main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x7d19ac)
#20 0x00007e00d9e2a1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#21 0x00007e00d9e2a28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#22 0x00000000008231f5 _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x8231f5)
Program terminated with signal SIGABRT (6)
Compiler returned: 134
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs