Commit e1db6b8
committed
[AMDGPU][LowerBufferFatPointers] Fix lack of rewrite when loading/storing null
Fixes #154056.
The fat buffer lowering pass was erroniously detecting that it did not
need to run on functions that only load/store to the null constant (or
other such constants). We thought this would be covered by
specilaizing constants out to instructions, but that doesn't account
foc trivial constants like null. Therefoe, we check the operands of
instructions for buffer fat pointers in order to find such constants
and ensure the pass runs.1 parent 2a02147 commit e1db6b8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2366 | 2366 | | |
2367 | 2367 | | |
2368 | 2368 | | |
2369 | | - | |
| 2369 | + | |
2370 | 2370 | | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
2371 | 2375 | | |
2372 | 2376 | | |
2373 | 2377 | | |
| |||
0 commit comments