[PATCH] D87152: [StackLifetime]
Yifeng Dong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 08:57:34 PDT 2020
dongAxis1944 created this revision.
dongAxis1944 added a reviewer: vitalybuka.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
dongAxis1944 requested review of this revision.
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.
TestPlan: check-llvm
https://reviews.llvm.org/D87152
Files:
llvm/lib/Analysis/StackLifetime.cpp
Index: llvm/lib/Analysis/StackLifetime.cpp
===================================================================
--- llvm/lib/Analysis/StackLifetime.cpp
+++ llvm/lib/Analysis/StackLifetime.cpp
@@ -292,7 +292,7 @@
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";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87152.289971.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200904/eb3b4dbf/attachment.bin>
More information about the llvm-commits
mailing list