[llvm] 18c725e - [DomTree] Remove dead code.[NFC]

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 18:03:36 PDT 2020


Author: Alina Sbirlea
Date: 2020-07-27T18:02:52-07:00
New Revision: 18c725e735b1bfb756c2320d812bb095f2c98574

URL: https://github.com/llvm/llvm-project/commit/18c725e735b1bfb756c2320d812bb095f2c98574
DIFF: https://github.com/llvm/llvm-project/commit/18c725e735b1bfb756c2320d812bb095f2c98574.diff

LOG: [DomTree] Remove dead code.[NFC]

Added: 
    

Modified: 
    llvm/include/llvm/Support/GenericDomTreeConstruction.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/GenericDomTreeConstruction.h b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
index 709276ab7a29..5a1f03c879db 100644
--- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h
+++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
@@ -92,13 +92,9 @@ struct SemiNCAInfo {
 
   BatchUpdateInfo *BatchUpdates;
   using BatchUpdatePtr = BatchUpdateInfo *;
-  std::unique_ptr<GraphDiffT> EmptyGD;
 
   // If BUI is a nullptr, then there's no batch update in progress.
-  SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {
-    if (!BatchUpdates)
-      EmptyGD = std::make_unique<GraphDiffT>();
-  }
+  SemiNCAInfo(BatchUpdatePtr BUI) : BatchUpdates(BUI) {}
 
   void clear() {
     NumToNode = {nullptr}; // Restore to initial state with a dummy start node.


        


More information about the llvm-commits mailing list