| Issue |
60605
|
| Summary |
InstCombine fails on assert in optimizeExp2 function
|
| Labels |
tools:opt,
llvm:instcombine
|
| Assignees |
|
| Reporter |
aymanmusa
|
The following assert fails:
```
sext source and destination must both be a vector or neither
%1 = sext <2 x i8> %0 to i32
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-15.0.0/bin/opt -o /app/output.s -S -passes=instcombine <source>
#0 0x0000561e4267fac4 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
#1 0x0000561e4267d324 SignalHandler(int) Signals.cpp:0:0
#2 0x00007fd794fbb420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#3 0x00007fd794a8800b raise (/lib/x86_64-linux-gnu/libc.so.6+0x4300b)
#4 0x00007fd794a67859 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22859)
#5 0x0000561e3fdbd797 llvm::DisplayGraph(llvm::StringRef, bool, llvm::GraphProgram::Name) (.cold) GraphWriter.cpp:0:0
#6 0x0000561e425c045e (/opt/compiler-explorer/clang-15.0.0/bin/opt+0x31ca45e)
#7 0x0000561e41e49edc (/opt/compiler-explorer/clang-15.0.0/bin/opt+0x2a53edc)
#8 0x0000561e3fe9c026 llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-15.0.0/bin/opt+0xaa6026)
#9 0x0000561e41e0e122 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/compiler-explorer/clang-15.0.0/bin/opt+0x2a18122)
#10 0x0000561e3fea6b0f 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, bool) (/opt/compiler-explorer/clang-15.0.0/bin/opt+0xab0b0f)
#11 0x0000561e3fdd494c main (/opt/compiler-explorer/clang-15.0.0/bin/opt+0x9de94c)
#12 0x00007fd794a69083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083)
#13 0x0000561e3fe9a04e _start (/opt/compiler-explorer/clang-15.0.0/bin/opt+0xaa404e)
Compiler returned: 139
```
https://godbolt.org/z/7aMPq45zK
Command: opt -S -passes=instcombine fail.ll
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs