[llvm-branch-commits] [llvm] [AMDGPU] Physical register tracking in GCN trackers. (PR #184275)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Mar 31 02:28:22 PDT 2026
================
@@ -471,6 +495,69 @@ LaneBitmask llvm::getLiveLaneMask(unsigned Reg, SlotIndex SI,
return getLiveLaneMask(LIS.getInterval(Reg), SI, MRI, LaneMaskFilter);
}
+bool GCNRPTracker::isUnitLiveAt(MCRegUnit Unit, SlotIndex SI) const {
+ const LiveRange *LR = LIS.getCachedRegUnit(Unit);
+ // If LIS has no reg-unit live range, be conservative and assume it is live.
+ return !LR || LR->liveAt(SI);
+}
+
+bool GCNRPTracker::allRegUnitsLive(MCRegister Reg) const {
+ assert(MRI && "MRI not initialized");
+ const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo();
----------------
arsenm wrote:
I mean you can put it there
https://github.com/llvm/llvm-project/pull/184275
More information about the llvm-branch-commits
mailing list