Adjust SITargetLowering::allowsMisalignedMemoryAccessesImpl for
unaligned flat scratch support. Mostly needed for global isel.
Details
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
1479 | Does it really only work if accessed through the flat instructions? I thought it would even through MUBUF |
llvm/lib/Target/AMDGPU/SIISelLowering.cpp | ||
---|---|---|
1479 | Yes, it is only flat scratch. For MUBUF spec says: "Swizzled addressing also requires dword aligned accesses". |
I think there's some missing tests, these test changes look incidental. Can you add some checks to the existing unaligned load/store base tests
Which tests do you mean? As far as I understand this mostly affects GlobalISel and child patch D93670 contains the actual test, all unaligned cases.
This should cover both. I mean unaligned-load-store.ll (and some others, it's annoying how the test names for these aren't consistent and there is redundancy between files)
Yes, I think we're missing some testing combinations (not helped by the mess from the old tests)
Does it really only work if accessed through the flat instructions? I thought it would even through MUBUF