Optimizations passes can remove GEP with offset=0 and amdgpu.uniform,
but they are less likely to drop amdgpu.uniform from a load.
This is the only way to have uniform loads without GEP or when GEP is
eliminated.
Differential D41715
AMDGPU: Process amdgpu.uniform on loads mareko on Jan 3 2018, 1:39 PM. Authored by
Details
Diff Detail
Event Timeline
|
I'm not sure I understand the problem this is solving. Why is it dropped specifically if it is 0? If the offset is constant the GEP is uniform iff the base pointer is uniform