You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ llc -mattr=+exception-handling -wasm-enable-eh -exception-model=wasm -verify-machineinstrs test.ll`*** Bad machine code: MBB has unexpected successors which are not branch targets, fallthrough, EHPads, or inlineasm_br targets. ***- function: test- basic block: %bb.3 bb5 (0x560373183d28)*** Bad machine code: MBB has unexpected successors which are not branch targets, fallthrough, EHPads, or inlineasm_br targets. ***- function: test- basic block: %bb.6 bb7 (0x560373183f28)LLVM ERROR: Found 2 machine code errors.PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.Stack dump:0. Program arguments: /usr/local/google/home/aheejin/llvm-git/install.debug/bin/llc -mattr=+exception-handling -wasm-enable-eh -exception-model=wasm -verify-machineinstrs min.ll1. Running pass 'Function Pass Manager' on module 'min.ll'.2. Running pass 'Verify generated machine code' on function '@test' #0 0x00007f6978d9628a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/local/google/home/aheejin/llvm-git/llvm/lib/Support/Unix/Signals.inc:602:11 #1 0x00007f6978d9643b PrintStackTraceSignalHandler(void*) /usr/local/google/home/aheejin/llvm-git/llvm/lib/Support/Unix/Signals.inc:675:1 #2 0x00007f6978d94c46 llvm::sys::RunSignalHandlers() /usr/local/google/home/aheejin/llvm-git/llvm/lib/Support/Signals.cpp:104:5 #3 0x00007f6978d96a45 SignalHandler(int) /usr/local/google/home/aheejin/llvm-git/llvm/lib/Support/Unix/Signals.inc:413:1 #4 0x00007f697885af90 (/lib/x86_64-linux-gnu/libc.so.6+0x3bf90) #5 0x00007f69788a9ccc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76 #6 0x00007f697885aef2 raise ./signal/../sysdeps/posix/raise.c:27:6 #7 0x00007f6978845472 abort ./stdlib/abort.c:81:7 #8 0x00007f6978c66dc4 llvm::report_fatal_error(llvm::Twine const&, bool) /usr/local/google/home/aheejin/llvm-git/llvm/lib/Support/ErrorHandling.cpp:125:5 #9 0x00007f697c9ef832 (anonymous namespace)::MachineVerifierPass::runOnMachineFunction(llvm::MachineFunction&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/CodeGen/MachineVerifier.cpp:315:7#10 0x00007f697c86981f llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/CodeGen/MachineFunctionPass.cpp:91:8#11 0x00007f69795e886a llvm::FPPassManager::runOnFunction(llvm::Function&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/IR/LegacyPassManager.cpp:1435:23#12 0x00007f69795ed612 llvm::FPPassManager::runOnModule(llvm::Module&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/IR/LegacyPassManager.cpp:1481:16#13 0x00007f69795e9129 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/IR/LegacyPassManager.cpp:1550:23#14 0x00007f69795e8c9a llvm::legacy::PassManagerImpl::run(llvm::Module&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/IR/LegacyPassManager.cpp:535:16#15 0x00007f69795ed8f1 llvm::legacy::PassManager::run(llvm::Module&) /usr/local/google/home/aheejin/llvm-git/llvm/lib/IR/LegacyPassManager.cpp:1677:3#16 0x000056037167d3a7 compileModule(char**, llvm::LLVMContext&) /usr/local/google/home/aheejin/llvm-git/llvm/tools/llc/llc.cpp:759:41#17 0x000056037167b6ed main /usr/local/google/home/aheejin/llvm-git/llvm/tools/llc/llc.cpp:420:13#18 0x00007f697884618a __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3#19 0x00007f6978846245 call_init ./csu/../csu/libc-start.c:128:20#20 0x00007f6978846245 __libc_start_main ./csu/../csu/libc-start.c:368:5#21 0x000056037167aed1 _start (/usr/local/google/home/aheejin/llvm-git/install.debug/bin/llc+0x2eed1)Aborted
This program was created while trying to reduce the example shown in #62961, so this can be due to the same cause. At the same time, this can be also related to #63182 (because this has an unwind backedge bb7->bb2) or #49292 (because this also has an irreducible CFG related to an unwind edge), or both. Before investigating it's hard to ensure if any of these are actually the same bug, so will file this separately for now.
The text was updated successfully, but these errors were encountered:
test.ll:
This program was created while trying to reduce the example shown in #62961, so this can be due to the same cause. At the same time, this can be also related to #63182 (because this has an unwind backedge
bb7
->bb2
) or #49292 (because this also has an irreducible CFG related to an unwind edge), or both. Before investigating it's hard to ensure if any of these are actually the same bug, so will file this separately for now.The text was updated successfully, but these errors were encountered: