File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
lib/SILOptimizer/Analysis Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -2351,7 +2351,7 @@ class PartitionOpTranslator {
2351
2351
REGIONBASEDISOLATION_LOG (
2352
2352
llvm::dbgs () << SEP_STR << " Compiling basic block for function "
2353
2353
<< basicBlock->getFunction ()->getName () << " : " ;
2354
- basicBlock->dumpID ( ); llvm::dbgs () << SEP_STR;
2354
+ basicBlock->printID ( llvm::dbgs () ); llvm::dbgs () << SEP_STR;
2355
2355
basicBlock->print (llvm::dbgs ());
2356
2356
llvm::dbgs () << SEP_STR << " Results:\n " ;);
2357
2357
// Translate each SIL instruction to the PartitionOps that it represents if
@@ -3342,12 +3342,7 @@ bool BlockPartitionState::recomputeExitFromEntry(
3342
3342
void BlockPartitionState::print (llvm::raw_ostream &os) const {
3343
3343
os << SEP_STR << " BlockPartitionState[needsUpdate=" << needsUpdate
3344
3344
<< " ]\n id: " ;
3345
- #ifndef NDEBUG
3346
- auto printID = [&](SILBasicBlock *block) { block->printID (os); };
3347
- #else
3348
- auto printID = [&](SILBasicBlock *) { os << " NOASSERTS. " ; };
3349
- #endif
3350
- printID (basicBlock);
3345
+ basicBlock->printID (os);
3351
3346
os << " entry partition: " ;
3352
3347
entryPartition.print (os);
3353
3348
os << " exit partition: " ;
@@ -3360,12 +3355,12 @@ void BlockPartitionState::print(llvm::raw_ostream &os) const {
3360
3355
os << " └──────────╼\n Succs:\n " ;
3361
3356
for (auto succ : basicBlock->getSuccessorBlocks ()) {
3362
3357
os << " →" ;
3363
- printID (succ );
3358
+ succ-> printID (os );
3364
3359
}
3365
3360
os << " Preds:\n " ;
3366
3361
for (auto pred : basicBlock->getPredecessorBlocks ()) {
3367
3362
os << " ←" ;
3368
- printID (pred );
3363
+ pred-> printID (os );
3369
3364
}
3370
3365
os << SEP_STR;
3371
3366
}
You can’t perform that action at this time.
0 commit comments