[llvm] [AMDGPU] NFC: Provide RPTracker interface for external iterators (PR #93088)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 13:38:49 PDT 2024
================
@@ -517,7 +519,9 @@ void GCNUpwardRPTracker::bumpUpwardPressure(const MachineInstr *MI) {
// Account for register pressure similar to RegPressureTracker::recede().
RegisterOperands RegOpers;
- const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo();
+
+ const SIRegisterInfo *TRI =
+ MI->getMF()->getSubtarget<GCNSubtarget>().getRegisterInfo();
----------------
arsenm wrote:
Shouldn't need to crawl through MI to get o the function? This should be locally available somewhere?
https://github.com/llvm/llvm-project/pull/93088
More information about the llvm-commits
mailing list