[llvm] [AMDGPU] Fix GCNUpwardRPTracker: max register pressure on defs. (PR #74422)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 02:40:26 PST 2023
================
@@ -274,32 +274,42 @@ void GCNUpwardRPTracker::recede(const MachineInstr &MI) {
if (MI.isDebugInstr())
return;
- auto DecrementDef = [this](const MachineOperand &MO) {
+ // Kill all defs.
+ GCNRegPressure DefPressure, ECDefPressure;
+ bool HasECDefs = false;
----------------
jayfoad wrote:
Maybe not worth it, since `GCNRegPressure::operator+` is just 6 integer add instructions - but I don't really mind either way.
https://github.com/llvm/llvm-project/pull/74422
More information about the llvm-commits
mailing list