[AMDGPU] Improve liveness copying in si-optimize-exec-masking-pre-ra
authorCarl Ritson <carl.ritson@amd.com>
Sun, 17 Jul 2022 07:19:40 +0000 (16:19 +0900)
committerCarl Ritson <carl.ritson@amd.com>
Sun, 17 Jul 2022 08:34:05 +0000 (17:34 +0900)
commit547e3cba7d166286c3c4ce477998a81ebbed6921
tree32dd85029f308829d84705b9dfa8c79a82f8ba08
parent9e6d1f4b5d393b8d74640c72b94ccc23ed4ee885
[AMDGPU] Improve liveness copying in si-optimize-exec-masking-pre-ra

Further improve liveness copying for CC register post optimization
by mirroring live internal splits.
The fixes a bug in register allocation when CC register liveness
is extended across a branches instead of split.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D129557
llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
llvm/test/CodeGen/AMDGPU/optimize-exec-mask-pre-ra-alloc-failure.mir [new file with mode: 0644]