[LLVM][LICM] Stack overflow after 469702c
Open
llvm:transforms
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
[LICM] Sink unused l-invariant loads in preheader. (https://github.com/llvm/llvm-project/pull/157559) increases the stack usage significantly.
Reproducer:
```
ulimit -s 200
opt -passes="licm" ~/workspace/licm-repro.ll -f
```
if the PR is rolled back, then it works even with a smaller stack size `ulimit -s 64`.
[licm-repro.zip](https://github.com/user-attachments/files/23546581/licm-repro.zip)
Contributor guide
Assessment
This issue has not been assessed yet.