RegAlloc: Fix remaining virtual registers after allocation failure
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 26 Mar 2022 15:01:53 +0000 (11:01 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 13 Apr 2022 20:25:30 +0000 (16:25 -0400)
commit1732242bee499d639fd481a32f36c5c64e008e8e
treecfb0ad26b685512039c07b5f1e241c8c99c06a78
parent2a6669060f3533d144b12d1ec0faafe2de537994
RegAlloc: Fix remaining virtual registers after allocation failure

This testcase fails register allocation, but at the failure point
there were also new split virtual registers. Previously this was
assigning the failing register and not enqueueing the newly created
split virtual registers. These would then never be allocated and
assert in VirtRegRewriter.
llvm/lib/CodeGen/RegAllocBase.cpp
llvm/test/CodeGen/AMDGPU/remaining-virtual-register-operands.ll [new file with mode: 0644]