[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 2 08:02:07 PDT 2025
================
@@ -1498,7 +1508,8 @@ bool OccInitialScheduleStage::shouldRevertScheduling(unsigned WavesAfter) {
bool UnclusteredHighRPStage::shouldRevertScheduling(unsigned WavesAfter) {
// If RP is not reduced in the unclustered reschedule stage, revert to the
// old schedule.
- if ((WavesAfter <= PressureBefore.getOccupancy(ST) &&
+ if ((WavesAfter <=
+ PressureBefore.getOccupancy(ST, DAG.MFI.isDynamicVGPREnabled()) &&
----------------
shiltian wrote:
Is this on purpose to use `DAG.MFI.isDynamicVGPREnabled()` here, which effectively converts to 0/1?
https://github.com/llvm/llvm-project/pull/133444
More information about the llvm-commits
mailing list