[PATCH] D61999: [DominatorTree] Print roots unconditionally in `print()`.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 05:47:42 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL360886: [DominatorTree] Print roots unconditionally in `print()`. (authored by courbet, committed by ).
Herald added a subscriber: kristina.

Changed prior to commit:
  https://reviews.llvm.org/D61999?vs=199781&id=199802#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D61999

Files:
  llvm/trunk/include/llvm/Support/GenericDomTree.h


Index: llvm/trunk/include/llvm/Support/GenericDomTree.h
===================================================================
--- llvm/trunk/include/llvm/Support/GenericDomTree.h
+++ llvm/trunk/include/llvm/Support/GenericDomTree.h
@@ -669,14 +669,12 @@
 
     // The postdom tree can have a null root if there are no returns.
     if (getRootNode()) PrintDomTree<NodeT>(getRootNode(), O, 1);
-    if (IsPostDominator) {
-      O << "Roots: ";
-      for (const NodePtr Block : Roots) {
-        Block->printAsOperand(O, false);
-        O << " ";
-      }
-      O << "\n";
+    O << "Roots: ";
+    for (const NodePtr Block : Roots) {
+      Block->printAsOperand(O, false);
+      O << " ";
     }
+    O << "\n";
   }
 
 public:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61999.199802.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190516/8b3474f1/attachment.bin>


More information about the llvm-commits mailing list