[PATCH] D122501: [AMDGPU] Enable PreRARematerialize scheduling pass with multiple high RP regions
Vang Thao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 13:17:30 PDT 2022
vangthao marked 4 inline comments as done.
vangthao added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp:870
+ }
+
+ SinkedDefs.push_back(Def);
----------------
vangthao wrote:
> rampitec wrote:
> > Don't you need to remove Reg from NewLiveIns at this point for all regions?
> Updated to also remove Reg from all regions' LiveIns set and re-calculate RP for regions where the Reg was live-in including regions not at MinOccupancy. This should keep cached Pressure and LiveIns up to date after sinking.
Actually we also need to update the region where the def was sunk from so cached Pressure is not up to date. Added a FIXME.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122501/new/
https://reviews.llvm.org/D122501
More information about the llvm-commits
mailing list