[PATCH] D53160: AMDGPU: Avoid selecting ds_{read,write}2_b32 on SI
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 16 11:07:16 PDT 2018
arsenm added a comment.
Yes, something like this. I still expected to see some change in SelectDS64Bit4ByteAligned that has the fixme for this bug? I suppose the check for the sign bit would need to be here in the lowering since it would be more difficult to split during selection
================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:6711
+ if (Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS &&
+ NumElements == 2 && VT.getStoreSize() == 8 &&
+ Store->getAlignment() < 8) {
----------------
NumElements == 2 is redundant and possibly wrong?
Repository:
rL LLVM
https://reviews.llvm.org/D53160
More information about the llvm-commits
mailing list