[PATCH] D87152: [StackLifetime] add more detail log

Yifeng Dong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 6 20:44:52 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1fd7dc40748b: When dumping results of StackLifetime, it will print the following (authored by dongAxis1944).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87152/new/

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.290173.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200907/d5421adb/attachment.bin>


More information about the llvm-commits mailing list