@@ -4256,25 +4256,29 @@ void GenericScheduler::schedNode(SUnit *SU, bool IsTopNode) {
42564256 if (IsTopNode) {
42574257 SU->TopReadyCycle = std::max (SU->TopReadyCycle , Top.getCurrCycle ());
42584258 TopClusterID = SU->ParentClusterIdx ;
4259- LLVM_DEBUG (if (TopClusterID != InvalidClusterId) {
4260- ClusterInfo *TopCluster = DAG->getCluster (TopClusterID);
4261- dbgs () << " Top Cluster: " ;
4262- for (auto *N : *TopCluster)
4263- dbgs () << N->NodeNum << ' \t ' ;
4264- dbgs () << ' \n ' ;
4259+ LLVM_DEBUG ({
4260+ if (TopClusterID != InvalidClusterId) {
4261+ ClusterInfo *TopCluster = DAG->getCluster (TopClusterID);
4262+ dbgs () << " Top Cluster: " ;
4263+ for (auto *N : *TopCluster)
4264+ dbgs () << N->NodeNum << ' \t ' ;
4265+ dbgs () << ' \n ' ;
4266+ }
42654267 });
42664268 Top.bumpNode (SU);
42674269 if (SU->hasPhysRegUses )
42684270 reschedulePhysReg (SU, true );
42694271 } else {
42704272 SU->BotReadyCycle = std::max (SU->BotReadyCycle , Bot.getCurrCycle ());
42714273 BotClusterID = SU->ParentClusterIdx ;
4272- LLVM_DEBUG (if (BotClusterID != InvalidClusterId) {
4273- ClusterInfo *BotCluster = DAG->getCluster (BotClusterID);
4274- dbgs () << " Bot Cluster: " ;
4275- for (auto *N : *BotCluster)
4276- dbgs () << N->NodeNum << ' \t ' ;
4277- dbgs () << ' \n ' ;
4274+ LLVM_DEBUG ({
4275+ if (BotClusterID != InvalidClusterId) {
4276+ ClusterInfo *BotCluster = DAG->getCluster (BotClusterID);
4277+ dbgs () << " Bot Cluster: " ;
4278+ for (auto *N : *BotCluster)
4279+ dbgs () << N->NodeNum << ' \t ' ;
4280+ dbgs () << ' \n ' ;
4281+ }
42784282 });
42794283 Bot.bumpNode (SU);
42804284 if (SU->hasPhysRegDefs )
0 commit comments