[llvm] [AMDGPU] Fix speculative register pressure queries (PR #208574)
Nicolai Hähnle via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 10:52:07 PDT 2026
================
@@ -767,8 +767,11 @@ bool GCNDownwardRPTracker::advance(MachineInstr *MI, bool UseInternalIterator) {
advanceBeforeNext(MI, UseInternalIterator);
advanceToNext(MI, UseInternalIterator);
if (!UseInternalIterator) {
+ const MachineInstr *SavedLastTrackedMI = LastTrackedMI;
// We must remove any dead def lanes from the current RP
advanceBeforeNext(MI, true);
+ // Restore LastTrackedMI set by advanceToNext
----------------
nhaehnle wrote:
That comment is not helpful. If you put a comment here, you should explain *why this is correct*.
I don't actually know the context well enough.
https://github.com/llvm/llvm-project/pull/208574
More information about the llvm-commits
mailing list