mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
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
a51dedaf25
commit
f58ab2a818
@ -292,7 +292,7 @@ LLVM_DUMP_METHOD void StackLifetime::dumpBlockLiveness() const {
|
|||||||
const BasicBlock *BB = IT.getFirst();
|
const BasicBlock *BB = IT.getFirst();
|
||||||
const BlockLifetimeInfo &BlockInfo = BlockLiveness.find(BB)->getSecond();
|
const BlockLifetimeInfo &BlockInfo = BlockLiveness.find(BB)->getSecond();
|
||||||
auto BlockRange = BlockInstRange.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
|
<< "): begin " << BlockInfo.Begin << ", end " << BlockInfo.End
|
||||||
<< ", livein " << BlockInfo.LiveIn << ", liveout "
|
<< ", livein " << BlockInfo.LiveIn << ", liveout "
|
||||||
<< BlockInfo.LiveOut << "\n";
|
<< BlockInfo.LiveOut << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user