[llvm] r268711 - [TableGen] Remove isSafeToReorderWithPatternPredicate from DAGISelMatchers as its not used anymore.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 23:21:27 PDT 2016


Author: ctopper
Date: Fri May  6 01:21:27 2016
New Revision: 268711

URL: http://llvm.org/viewvc/llvm-project?rev=268711&view=rev
Log:
[TableGen] Remove isSafeToReorderWithPatternPredicate from DAGISelMatchers as its not used anymore.

Modified:
    llvm/trunk/utils/TableGen/DAGISelMatcher.h

Modified: llvm/trunk/utils/TableGen/DAGISelMatcher.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcher.h?rev=268711&r1=268710&r2=268711&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcher.h (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcher.h Fri May  6 01:21:27 2016
@@ -106,12 +106,6 @@ public:
     return isEqualImpl(M);
   }
 
-  /// isSafeToReorderWithPatternPredicate - Return true if it is safe to sink a
-  /// PatternPredicate node past this one.
-  virtual bool isSafeToReorderWithPatternPredicate() const {
-    return false;
-  }
-
   /// isSimplePredicateNode - Return true if this is a simple predicate that
   /// operates on the node or its children without potential side effects or a
   /// change of the current node.
@@ -243,7 +237,6 @@ public:
     return N->getKind() == RecordNode;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -276,8 +269,6 @@ public:
     return N->getKind() == RecordChild;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -294,8 +285,6 @@ public:
     return N->getKind() == RecordMemRef;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -312,8 +301,6 @@ public:
     return N->getKind() == CaptureGlueInput;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -332,8 +319,6 @@ public:
     return N->getKind() == MoveChild;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -351,8 +336,6 @@ public:
     return N->getKind() == MoveParent;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override { return true; }
@@ -373,8 +356,6 @@ public:
     return N->getKind() == CheckSame;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -399,8 +380,6 @@ public:
     return N->getKind() == CheckChildSame;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -424,8 +403,6 @@ public:
     return N->getKind() == CheckPatternPredicate;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -446,9 +423,6 @@ public:
     return N->getKind() == CheckPredicate;
   }
 
-  // TODO: Ok?
-  //virtual bool isSafeToReorderWithPatternPredicate() const { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -471,8 +445,6 @@ public:
     return N->getKind() == CheckOpcode;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override;
@@ -521,8 +493,6 @@ public:
     return N->getKind() == CheckType;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -574,8 +544,6 @@ public:
     return N->getKind() == CheckChildType;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -600,8 +568,6 @@ public:
     return N->getKind() == CheckInteger;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -626,8 +592,6 @@ public:
     return N->getKind() == CheckChildInteger;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -651,8 +615,6 @@ public:
     return N->getKind() == CheckCondCode;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -674,8 +636,6 @@ public:
     return N->getKind() == CheckValueType;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -717,9 +677,6 @@ public:
     return N->getKind() == CheckComplexPat;
   }
 
-  // Not safe to move a pattern predicate past a complex pattern.
-  bool isSafeToReorderWithPatternPredicate() const override { return false; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -742,8 +699,6 @@ public:
     return N->getKind() == CheckAndImm;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -765,8 +720,6 @@ public:
     return N->getKind() == CheckOrImm;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override {
@@ -785,8 +738,6 @@ public:
     return N->getKind() == CheckFoldableChainNode;
   }
 
-  bool isSafeToReorderWithPatternPredicate() const override { return true; }
-
 private:
   void printImpl(raw_ostream &OS, unsigned indent) const override;
   bool isEqualImpl(const Matcher *M) const override { return true; }




More information about the llvm-commits mailing list