]> granicus.if.org Git - llvm/commit
GlobalISel: Fix narrowScalar for load/store with different mem size
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 29 Jan 2019 18:13:02 +0000 (18:13 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 29 Jan 2019 18:13:02 +0000 (18:13 +0000)
commitae17beb3c17f8d7a83a62f48ac8773ef2a77dbd6
treeabddaccadd3de951164e41a776708c1af39f62d8
parent0131ce2874034a4eb97e6149228cc9fe1a5fb02a
GlobalISel: Fix narrowScalar for load/store with different mem size

This was ignoring the memory size, and producing multiple loads/stores
if the operand size was different from the memory size.

I assume this is the intent of not having an explicit G_ANYEXTLOAD
(although I think that would probably be better).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352523 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/legalize-load.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-store.mir