[Mlir-commits] [mlir] eebd0a5 - Remove unused class member (NFC)

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 7 22:38:15 PDT 2020


Author: Mehdi Amini
Date: 2020-08-08T05:36:41Z
New Revision: eebd0a57fc9387689af393a28cd00105ae9549e8

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

LOG: Remove unused class member (NFC)

Fix include/mlir/Reducer/ReductionNode.h:79:18: warning: private field 'parent' is not used [-Wunused-private-field]

Added: 
    

Modified: 
    mlir/include/mlir/Reducer/ReductionNode.h
    mlir/tools/mlir-reduce/ReductionNode.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Reducer/ReductionNode.h b/mlir/include/mlir/Reducer/ReductionNode.h
index d07ddc5cb177..bac282b784ef 100644
--- a/mlir/include/mlir/Reducer/ReductionNode.h
+++ b/mlir/include/mlir/Reducer/ReductionNode.h
@@ -74,10 +74,6 @@ class ReductionNode {
   // This indicates if the module has been evalueated (measured and tested).
   bool evaluated;
 
-  // This points to the ReductionNode that was used as a starting point to
-  // create this variant. It is null if the reduction node is the root.
-  ReductionNode *parent;
-
   // This points to the child variants that were created using this node as a
   // starting point.
   std::vector<std::unique_ptr<ReductionNode>> variants;

diff  --git a/mlir/tools/mlir-reduce/ReductionNode.cpp b/mlir/tools/mlir-reduce/ReductionNode.cpp
index 30b9b7948854..ed1ff8534f7c 100644
--- a/mlir/tools/mlir-reduce/ReductionNode.cpp
+++ b/mlir/tools/mlir-reduce/ReductionNode.cpp
@@ -20,7 +20,7 @@ using namespace mlir;
 
 /// Sets up the metadata and links the node to its parent.
 ReductionNode::ReductionNode(ModuleOp module, ReductionNode *parent)
-    : module(module), evaluated(false), parent(parent) {
+    : module(module), evaluated(false) {
 
   if (parent != nullptr)
     parent->linkVariant(this);


        


More information about the Mlir-commits mailing list