llvm / llvm/llvm-project

[LLVM][LICM] Stack overflow after 469702c

Open
#168,048 0 comments 0 reactions 1 assignee Claimed by @VigneshwarJ View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.