Only the number of elements in the dmask will really be accessed.
Tests will be included in future GlobalISel patch.
Paths
| Differential D73559
AMDGPU: Account for dmask when computing image mem size ClosedPublic Authored by arsenm on Jan 28 2020, 8:56 AM.
Details
Summary Only the number of elements in the dmask will really be accessed. Tests will be included in future GlobalISel patch.
Diff Detail Event Timelinearsenm added a parent revision: D73558: AMDGPU: Correct memory size for image intrinsics.Jan 28 2020, 8:57 AM Comment Actions The memory size of image loads is a bit of bizarre concept, but I assume this helps with the GlobalISel stuff, so sure. LGTM, one stylistic nitpick.
This revision is now accepted and ready to land.Jan 30 2020, 1:46 AM
Revision Contents
Diff 240900 llvm/lib/Target/AMDGPU/SIISelLowering.cpp
|
As a stylistic note, I think it's nicer to have braces around both sides of an if-else, if one side requires it.