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