Commit 3caabbf
Add InferAddressSpaces + optimization passes after kernarg rewrite
Run InferAddressSpaces (with TargetMachine) after add_kernarg_address_spaces!
to propagate addrspace(4) through addrspacecast chains. Follow up with SROA,
InstCombine, EarlyCSE, and SimplifyCFG to clean up newly-exposed opportunities.
The earlier illegal address errors were caused by byref attribute loss in
clone_into!, not by InferAddressSpaces itself.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 14e010b commit 3caabbf
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
| |||
159 | 173 | | |
160 | 174 | | |
161 | 175 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 176 | + | |
168 | 177 | | |
169 | 178 | | |
170 | 179 | | |
| |||
0 commit comments