forked from OSchip/llvm-project
When dumping results of StackLifetime, it will print the following
log: BB [7, 8): begin {}, end {}, livein {}, liveout {} BB [1, 2): begin {}, end {}, livein {}, liveout {} ... But it is not convenient to know what the basic block is. So I add the basic block name to it. Reviewed By: vitalybuka TestPlan: check-llvm Differential Revision: https://reviews.llvm.org/D87152
This commit is contained in:
parent
9bee13f890
commit
1fd7dc4074
|
@ -292,7 +292,7 @@ LLVM_DUMP_METHOD void StackLifetime::dumpBlockLiveness() const {
|
|||
const BasicBlock *BB = IT.getFirst();
|
||||
const BlockLifetimeInfo &BlockInfo = BlockLiveness.find(BB)->getSecond();
|
||||
auto BlockRange = BlockInstRange.find(BB)->getSecond();
|
||||
dbgs() << " BB [" << BlockRange.first << ", " << BlockRange.second
|
||||
dbgs() << " BB (" << BB->getName() << ") [" << BlockRange.first << ", " << BlockRange.second
|
||||
<< "): begin " << BlockInfo.Begin << ", end " << BlockInfo.End
|
||||
<< ", livein " << BlockInfo.LiveIn << ", liveout "
|
||||
<< BlockInfo.LiveOut << "\n";
|
||||
|
|
Loading…
Reference in New Issue