GlobalISel: Preserve LLT when bitcasting loads and stores
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 10 Jun 2021 23:32:41 +0000 (19:32 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 19 Jul 2021 15:30:14 +0000 (11:30 -0400)
commit9236125ec88f619799879beef5a6d2855c87bced
tree143d0bb0f40a33f48727857339027daaa8e59adb
parent84dfbf5a7797f6a3f786163b77ce020009d6ba4e
GlobalISel: Preserve LLT when bitcasting loads and stores

This also avoids improperly legalizing some truncating vector stores.
llvm/include/llvm/CodeGen/MachineMemOperand.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-zext.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-extract-vector-elt.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-constant.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-flat.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-private.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-store-global.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-store.mir