[llvm] [MISched] Add statistics to quantify scheduling (PR #138090)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 09:21:25 PDT 2025
================
@@ -4321,6 +4343,17 @@ SUnit *PostGenericScheduler::pickNode(bool &IsTopNode) {
LLVM_DEBUG(dbgs() << "Scheduling SU(" << SU->NodeNum << ") "
<< *SU->getInstr());
+
+ if (IsTopNode) {
+ if (SU->NodeNum == TopIdx++)
+ ++NumInstrsInSourceOrderPostRA;
+ } else {
+ if (SU->NodeNum == BotIdx--)
----------------
mshockwave wrote:
ditto
https://github.com/llvm/llvm-project/pull/138090
More information about the llvm-commits
mailing list