-
Couldn't load subscription status.
- Fork 15k
Closed
Labels
Description
Godbolt link: https://godbolt.org/z/nxcc7nzTa
Run opt -passes='loop-mssa(licm,loop-simplifycfg)' on the test
bug.ll.txt
Failure looks like:
Instruction does not dominate all uses! %tmp34 = call token (i64, i32, i8 addrspace(1)* (i64, i32, i32, i32)*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_p1i8i64i32i32i32f(i64 2882400000, i32 0, i8 addrspace(1)* (i64, i32, i32, i32)* nonnull elementtype(i8 addrspace(1)* (i64, i32, i32, i32)) @barney.4, i32 4, i32 0, i64 undef, i32 5, i32 5, i32 undef, i32 0, i32 0) [ "deopt"(), "gc-live"(i8 addrspace(1)* undef) ] %tmp35.le = call coldcc i8 addrspace(1)* @llvm.experimental.gc.relocate.p1i8(token %tmp34, i32 0, i32 0) ; (undef, undef) LLVM ERROR: Broken module found, compilation aborted! 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-assertions-trunk/bin/opt -o /app/output.s -S -passes=loop-mssa(licm,loop-simplifycfg) <source> #0 0x000055bed996d55f PrintStackTraceSignalHandler(void*) Signals.cpp:0:0 #1 0x000055bed996af8c SignalHandler(int) Signals.cpp:0:0 #2 0x00007fdf224013c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x143c0) #3 0x00007fdf21ece03b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4303b) #4 0x00007fdf21ead859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859) #5 0x000055bed98afbed llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x34afbed) #6 0x000055bed98afd68 (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x34afd68) #7 0x000055bed911b00a llvm::VerifierPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x2d1b00a) #8 0x000055bed70a37a1 llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0xca37a1) #9 0x000055bed90e7444 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x2ce7444) #10 0x000055bed70ade8a llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::StringRef>, llvm::ArrayRef<llvm::PassPlugin>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0xcade8a) #11 0x000055bed6feb473 main (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0xbeb473) #12 0x00007fdf21eaf0b3 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x240b3) #13 0x000055bed70a171a _start (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0xca171a) Compiler returned: 139