AMDGPU: Fix assert when rewriting saddr d16 loads
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 11 May 2021 22:10:47 +0000 (18:10 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 14 May 2021 17:24:19 +0000 (13:24 -0400)
commitc7cff08f79f775d70f0241f4671d66586a9e17a7
tree46ce30747f4ccfb2aad50b7904625569fbd48bd8
parent990e806b36034a81c1707d63c229afd95665bdb9
AMDGPU: Fix assert when rewriting saddr d16 loads

moveOperands does not handle moving tied operands since it would
generally have to fixup the tied operand references. Avoid the assert
by untying and retying after the modification. These in place
modifications really aren't managable.
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/global-load-saddr-to-vaddr.ll