Commit 3c622fb
[inductor] Fix var_to_range in IndexPropagation (#130984)
The current code assumes that indirect variables will be created by the
same `IndexPropagation` instance, however that isn't true in the case of
masked sub-blocks where we take in variables from the parent block.
This fixes the issue by moving the var range information up to the
`LoopBody` object where it can be shared by all sub-blocks.
Pull Request resolved: #130984
Approved by: https://github.com/lezcano1 parent b556d31 commit 3c622fb
2 files changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
| |||
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
309 | 324 | | |
310 | 325 | | |
311 | 326 | | |
312 | | - | |
| 327 | + | |
313 | 328 | | |
314 | 329 | | |
315 | 330 | | |
| |||
351 | 366 | | |
352 | 367 | | |
353 | 368 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | 369 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6479 | 6479 | | |
6480 | 6480 | | |
6481 | 6481 | | |
| 6482 | + | |
6482 | 6483 | | |
6483 | 6484 | | |
6484 | 6485 | | |
| |||
6531 | 6532 | | |
6532 | 6533 | | |
6533 | 6534 | | |
| 6535 | + | |
6534 | 6536 | | |
| 6537 | + | |
6535 | 6538 | | |
6536 | 6539 | | |
6537 | 6540 | | |
| |||
6712 | 6715 | | |
6713 | 6716 | | |
6714 | 6717 | | |
6715 | | - | |
| 6718 | + | |
| 6719 | + | |
| 6720 | + | |
6716 | 6721 | | |
6717 | 6722 | | |
6718 | 6723 | | |
| |||
0 commit comments