| Issue |
114029
|
| Summary |
Assertion `isSCEVable(V->getType()) && "Value is not SCEVable!"' failed.
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
TatyanaDoubts
|
To reproduce run llc with following test:
[reduced-stripped.ll.zip](https://github.com/user-attachments/files/17555497/reduced-stripped.ll.zip)
Reproducer: https://godbolt.org/z/YWjTnzzr9
Stack dump:
```
llc: /root/llvm-project/llvm/lib/Analysis/ScalarEvolution.cpp:4563: const llvm::SCEV* llvm::ScalarEvolution::getSCEV(llvm::Value*): Assertion `isSCEVable(V->getType()) && "Value is not SCEVable!"' failed.
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/llc -o /app/output.s -x86-asm-syntax=intel <source>
1. Running pass 'Function Pass Manager' on module '<source>'.
2. Running pass 'Loop Pass Manager' on function '@widget'
3. Running pass 'Loop Strength Reduction' on basic block '%bb1'
#0 0x0000000003ba0328 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3ba0328)
#1 0x0000000003b9dd1c SignalHandler(int) Signals.cpp:0:0
#2 0x00007e751ee42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x00007e751ee969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#4 0x00007e751ee42476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#5 0x00007e751ee287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#6 0x00007e751ee2871b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#7 0x00007e751ee39e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#8 0x000000000273996f llvm::ScalarEvolution::getSCEV(llvm::Value*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x273996f)
#9 0x000000000274b64c llvm::ScalarEvolution::getStrengthenedNoWrapFlagsFromBinOp(llvm::OverflowingBinaryOperator const*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x274b64c)
#10 0x0000000003d4a8c1 llvm::SCEVExpander::expand(llvm::SCEV const*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3d4a8c1)
#11 0x0000000003d4ae5c llvm::SCEVExpander::expandCodeFor(llvm::SCEV const*, llvm::Type*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3d4ae5c)
#12 0x00000000035b0f1c (anonymous namespace)::LSRInstance::Expand((anonymous namespace)::LSRUse const&, (anonymous namespace)::LSRFixup const&, (anonymous namespace)::Formula const&, llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, false>, llvm::SmallVectorImpl<llvm::WeakTrackingVH>&) const (.constprop.0) LoopStrengthReduce.cpp:0:0
#13 0x00000000035c3526 (anonymous namespace)::LSRInstance::LSRInstance(llvm::Loop*, llvm::IVUsers&, llvm::ScalarEvolution&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::MemorySSAUpdater*) LoopStrengthReduce.cpp:0:0
#14 0x00000000035c4aa5 ReduceLoopStrength(llvm::Loop*, llvm::IVUsers&, llvm::ScalarEvolution&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::MemorySSA*) LoopStrengthReduce.cpp:0:0
#15 0x00000000035c7de8 (anonymous namespace)::LoopStrengthReduce::runOnLoop(llvm::Loop*, llvm::LPPassManager&) LoopStrengthReduce.cpp:0:0
#16 0x00000000026a7ea3 llvm::LPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x26a7ea3)
#17 0x000000000311c840 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x311c840)
#18 0x000000000311cbf1 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x311cbf1)
#19 0x000000000311d4a7 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x311d4a7)
#20 0x000000000086c1bb compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#21 0x00000000007574d6 main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x7574d6)
#22 0x00007e751ee29d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#23 0x00007e751ee29e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#24 0x0000000000862ede _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x862ede)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs