[llvm] 5284c83 - Revert "[MachineScheduler] Convert some of the debug prints into using LDBG. NFC (#161997)"
Timm Bäder via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 5 00:05:26 PDT 2025
Author: Timm Bäder
Date: 2025-10-05T09:04:27+02:00
New Revision: 5284c83a8ff143b2d93853d1209f06d7d571f865
URL: https://github.com/llvm/llvm-project/commit/5284c83a8ff143b2d93853d1209f06d7d571f865
DIFF: https://github.com/llvm/llvm-project/commit/5284c83a8ff143b2d93853d1209f06d7d571f865.diff
LOG: Revert "[MachineScheduler] Convert some of the debug prints into using LDBG. NFC (#161997)"
This reverts commit a7414796c0854a9e6f649d922a58aa63147ae2e4.
This breaks builds:
3355 | << SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n";
| ~~~~~~~~~~ ^
/home/buildbot/workspace/bolt-aarch64-ubuntu-clang/llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:3358:51: error: no member named 'getResourceName' in 'llvm::TargetSchedModel'
3358 | LDBG() << " RemainingLimit: " << SchedModel->getResourceName(OtherCritIdx)
| ~~~~~~~~~~ ^
2 errors generated.
E.g. https://lab.llvm.org/buildbot/#/builders/128/builds/7522
Added:
Modified:
llvm/lib/CodeGen/MachineScheduler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 22a59ec21b948..299bcc46e4bd2 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -56,7 +56,6 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
-#include "llvm/Support/DebugLog.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/GraphWriter.h"
#include "llvm/Support/raw_ostream.h"
@@ -3350,16 +3349,14 @@ void GenericSchedulerBase::setPolicy(CandPolicy &Policy, bool IsPostRA,
if (CurrZone.getZoneCritResIdx() == OtherCritIdx)
return;
- if (CurrZone.isResourceLimited()) {
- LDBG() << " " << CurrZone.Available.getName() << " ResourceLimited: "
+ LLVM_DEBUG(if (CurrZone.isResourceLimited()) {
+ dbgs() << " " << CurrZone.Available.getName() << " ResourceLimited: "
<< SchedModel->getResourceName(CurrZone.getZoneCritResIdx()) << "\n";
- }
- if (OtherResLimited) {
- LDBG() << " RemainingLimit: " << SchedModel->getResourceName(OtherCritIdx)
- << "\n";
- }
- if (!CurrZone.isResourceLimited() && !OtherResLimited)
- LDBG() << " Latency limited both directions.\n";
+ } if (OtherResLimited) dbgs()
+ << " RemainingLimit: "
+ << SchedModel->getResourceName(OtherCritIdx) << "\n";
+ if (!CurrZone.isResourceLimited() && !OtherResLimited) dbgs()
+ << " Latency limited both directions.\n");
if (CurrZone.isResourceLimited() && !Policy.ReduceResIdx)
Policy.ReduceResIdx = CurrZone.getZoneCritResIdx();
More information about the llvm-commits
mailing list