]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Fix crash on wide constant load with VGPR pointer
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Oct 2019 22:44:49 +0000 (22:44 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Oct 2019 22:44:49 +0000 (22:44 +0000)
commit4f540a9a67e18a0be831d97b64181c37cd1caabb
treec277cecd4d3f21539546e53038a06bef0edfd931
parent9b697c425d8c1f8a8325b1414cca63c5c0152138
AMDGPU/GlobalISel: Fix crash on wide constant load with VGPR pointer

This was ignoring the register bank of the input pointer, and
isUniformMMO seems overly aggressive.

This will now conservatively assume a VGPR in cases where the incoming
bank hasn't been determined yet (i.e. is from a loop phi).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374255 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-load.mir