mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1758,6 +1758,7 @@ public:
|
||||
return V;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void dump(ScheduleDAG *DAG) const {
|
||||
// Emulate pop() without clobbering NodeQueueIds.
|
||||
std::vector<SUnit*> DumpQueue = Queue;
|
||||
@@ -1768,6 +1769,7 @@ public:
|
||||
SU->dump(DAG);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef RegReductionPriorityQueue<bu_ls_rr_sort>
|
||||
@@ -1895,6 +1897,7 @@ unsigned RegReductionPQBase::getNodePriority(const SUnit *SU) const {
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void RegReductionPQBase::dumpRegPressure() const {
|
||||
#ifndef NDEBUG
|
||||
for (TargetRegisterInfo::regclass_iterator I = TRI->regclass_begin(),
|
||||
E = TRI->regclass_end(); I != E; ++I) {
|
||||
const TargetRegisterClass *RC = *I;
|
||||
@@ -1904,6 +1907,7 @@ void RegReductionPQBase::dumpRegPressure() const {
|
||||
DEBUG(dbgs() << RC->getName() << ": " << RP << " / " << RegLimit[Id]
|
||||
<< '\n');
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool RegReductionPQBase::HighRegPressure(const SUnit *SU) const {
|
||||
|
Reference in New Issue
Block a user