[llvm] 1fd7dc4 - When dumping results of StackLifetime, it will print the following
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 6 20:44:46 PDT 2020
Author: dongAxis
Date: 2020-09-07T11:43:16+08:00
New Revision: 1fd7dc40748b17d8fc47ef1ebede9df61e973056
URL: https://github.com/llvm/llvm-project/commit/1fd7dc40748b17d8fc47ef1ebede9df61e973056
DIFF: https://github.com/llvm/llvm-project/commit/1fd7dc40748b17d8fc47ef1ebede9df61e973056.diff
LOG: 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
Added:
Modified:
llvm/lib/Analysis/StackLifetime.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackLifetime.cpp b/llvm/lib/Analysis/StackLifetime.cpp
index f95a8918afbb..ab5f2db7d1cd 100644
--- a/llvm/lib/Analysis/StackLifetime.cpp
+++ b/llvm/lib/Analysis/StackLifetime.cpp
@@ -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";
More information about the llvm-commits
mailing list