Repository navigation
Commit 5e5c14e
Core: Correct the pool-duplication TODO: the dead allocas do cost stack
The previous note claimed LLVM deletes the unreferenced duplicate temps.
Measured: removing only the dead alloca from the IR moves the BPF frame
from r10-32 to r10-24, so llc keeps it through frame layout and each
duplicated i64 temp costs 8 bytes per nesting level. opt -O2 would
remove it; the pipeline is llc only.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 055a81b commit 5e5c14e
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments