[llvm] [AMDGPU][GlobalISel] Allow selecting buffer_load/store of pointers (PR #110714)
Krzysztof Drewniak via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 06:44:17 PDT 2024
================
@@ -5805,6 +5806,10 @@ Register AMDGPULegalizerInfo::fixStoreSourceType(
if (hasBufferRsrcWorkaround(Ty))
return castBufferRsrcToV4I32(VData, B);
+ if (shouldBitcastLoadStoreType(ST, Ty, MemTy) || Ty.isPointerVector()) {
----------------
krzysz00 wrote:
Except that a regular G_LOAD or G_STORE can handle vectors of pointers just fine, and moving the condition changes a bunch of tests
https://github.com/llvm/llvm-project/pull/110714
More information about the llvm-commits
mailing list