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).
Paths
| Differential D68600
AMDGPU/GlobalISel: Fix crash on wide constant load with VGPR pointer ClosedPublic Authored by arsenm on Oct 7 2019, 3:07 PM.
Details
Diff Detail Event TimelineHerald added subscribers: Petar.Avramovic, t-tye, tpr and 6 others. · View Herald TranscriptOct 7 2019, 3:07 PM
Comment Actions I do have one question. Apart from that it LGTM.
This revision is now accepted and ready to land.Oct 9 2019, 3:47 AM
Revision Contents
Diff 223895 lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-load.mir
|
You mean because isUniformMMO returns true if the MMO doesn't have a pointer? There's a comment in that function which justifies that (though I'm not sure whether that comment is correct).