| Issue |
177144
|
| Summary |
[VectorCombine] LLVM ERROR: Broken module found, compilation aborted!
|
| Labels |
crash-on-valid,
generated by fuzzer,
llvm::vectorcombine
|
| Assignees |
|
| Reporter |
XChy
|
Reproducer: https://godbolt.org/z/nWG51fEc1
Testcase:
```llvm
define i8 @backsmith_pure_0() {
entry:
%0 = bitcast <4 x i64> splat (i64 1) to <32 x i8>
%vecext56 = extractelement <32 x i8> %0, i64 0
%tobool.not = icmp eq i8 0, 0
%vecext36 = extractelement <32 x i8> %0, i64 0
%narrow = select i1 %tobool.not, i8 %vecext36, i8 0
%narrow8 = select i1 %tobool.not, i8 %vecext56, i8 0
ret i8 %narrow8
}
```
Dump:
```
Instruction does not dominate all uses!
%tobool.not = icmp eq i8 0, 0
%0 = select i1 %tobool.not, <4 x i64> splat (i64 1), <4 x i64> zeroinitializer
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 and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/opt -o /app/output.s -S --passes=vector-combine <source>
1. Running pass "verify" on module "<source>"
#0 0x0000000005a91978 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x5a91978)
#1 0x0000000005a8e854 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x000074e865242520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x000074e8652969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#4 0x000074e865242476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#5 0x000074e8652287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#6 0x000000000082b993 llvm::json::operator==(llvm::json::Value const&, llvm::json::Value const&) (.cold) JSON.cpp:0:0
#7 0x00000000059c3d61 (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x59c3d61)
#8 0x0000000005847298 (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x5847298)
#9 0x0000000000962fde llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x962fde)
#10 0x00000000058035e1 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x58035e1)
#11 0x000000000096d1ca llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool, bool) (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x96d1ca)
#12 0x0000000000961278 optMain (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x961278)
#13 0x000074e865229d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#14 0x000074e865229e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#15 0x0000000000957ef5 _start (/opt/compiler-explorer/clang-assertions-trunk/bin/opt+0x957ef5)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs