Skip to content

Commit aa14e2e

Browse files
committed
[AMDGPU] Remove obsolete hack from allowsMisalignedMemoryAccesses. NFCI.
Differential Revision: https://reviews.llvm.org/D124035
1 parent bea69b2 commit aa14e2e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,18 +1658,6 @@ bool SITargetLowering::allowsMisalignedMemoryAccessesImpl(
16581658
bool SITargetLowering::allowsMisalignedMemoryAccesses(
16591659
EVT VT, unsigned AddrSpace, Align Alignment, MachineMemOperand::Flags Flags,
16601660
bool *IsFast) const {
1661-
if (IsFast)
1662-
*IsFast = false;
1663-
1664-
// TODO: I think v3i32 should allow unaligned accesses on CI with DS_READ_B96,
1665-
// which isn't a simple VT.
1666-
// Until MVT is extended to handle this, simply check for the size and
1667-
// rely on the condition below: allow accesses if the size is a multiple of 4.
1668-
if (VT == MVT::Other || (VT != MVT::Other && VT.getSizeInBits() > 1024 &&
1669-
VT.getStoreSize() > 16)) {
1670-
return false;
1671-
}
1672-
16731661
bool Allow = allowsMisalignedMemoryAccessesImpl(VT.getSizeInBits(), AddrSpace,
16741662
Alignment, Flags, IsFast);
16751663

0 commit comments

Comments
 (0)