[PATCH] D139710: [AMDGPU] MachineScheduler: schedule execution metric added for the UnclusteredHighRPStage
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 02:24:55 PST 2022
vpykhtin added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp:1032
+ CurrentSchedule.push_back(*SU);
+ }
+
----------------
Unneeded copy. Add second version of getScheduleMetrics that can perform in MachineInstr*, you can translate an instruction to SUnit inside.
================
Comment at: llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp:1051
+ NewMetric) /
+ ScheduleMetrics::ScaleFactor;
+ LLVM_DEBUG(dbgs() << "\tMetric before " << MBefore << "\tMetric after "
----------------
This Profit formula is very hard to read, could you split it?
Instead of the last division by SF, may be compare Profit < (SF * SF)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139710/new/
https://reviews.llvm.org/D139710
More information about the llvm-commits
mailing list