[SLP] remove unused reduction functions; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 15 Jan 2021 19:34:33 +0000 (14:34 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 15 Jan 2021 19:59:33 +0000 (14:59 -0500)
These were made obsolete by simplifying the code in recent patches.

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index 3f1279b..e1befc4 100644 (file)
@@ -6615,16 +6615,6 @@ class HorizontalReduction {
       return Kind == OD.Kind && Opcode == OD.Opcode;
     }
     bool operator!=(const OperationData &OD) const { return !(*this == OD); }
-    void clear() {
-      Opcode = 0;
-      Kind = RecurKind::None;
-    }
-
-    /// Get the opcode of the reduction operation.
-    unsigned getOpcode() const {
-      assert(isVectorizable() && "Expected vectorizable operation.");
-      return Opcode;
-    }
 
     /// Get kind of reduction data.
     RecurKind getKind() const { return Kind; }