RegAllocFast: Fix dropping subreg indexes on unassigned subreg defs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 Mar 2023 17:11:58 +0000 (13:11 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Wed, 5 Apr 2023 22:25:51 +0000 (18:25 -0400)
commit7907fd49619f121df6feafd8ca524840bcb6d5da
tree134ce432040574d20a503b970c208d475a58b226
parent61c1ed86a581476e252cce2b34c769a540244ab5
RegAllocFast: Fix dropping subreg indexes on unassigned subreg defs

This was assuming all register operands were assigned to physical registers.
This should ignore the operands which weren't assigned in this run.

Fixes #61134
llvm/lib/CodeGen/RegAllocFast.cpp
llvm/test/CodeGen/AMDGPU/regalloc-fast-dont-drop-subreg-index-issue61134.mir [new file with mode: 0644]