[AMDGPU] Track liveins for max-ilp-sched-strategy
authorJeffrey Byrnes <JeffreyByrnes@amd.com>
Thu, 27 Apr 2023 15:45:29 +0000 (08:45 -0700)
committerJeffrey Byrnes <JeffreyByrnes@amd.com>
Thu, 27 Apr 2023 23:45:45 +0000 (16:45 -0700)
commit7f0a881e6c3513914fd51b9ad3b3ac0b556af807
treebc912a554506ba9b17efd0a52b6cb9a66782161d
parentce861ec782ae3f41807b61e855512aaccf3c2149
[AMDGPU] Track liveins for max-ilp-sched-strategy

Even if optimizing for ILP, it is still useful to track RP to avoid spilling. Given that, we need to maintin consistent liveness state with the RP tracker. This patch makes RP tracking consistent by updating for liveins.

Otherwise, we should completely eliminate RP tracking for this scheduler (checkScheduling, initCandidate).

Differential Revision: https://reviews.llvm.org/D149358
llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
llvm/test/CodeGen/AMDGPU/schedule-ilp-liveness-tracking.mir [new file with mode: 0644]