[llvm] 1f21de5 - [SLP] remove unused reduction functions; NFC
    Sanjay Patel via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jan 15 11:59:42 PST 2021
    
    
  
Author: Sanjay Patel
Date: 2021-01-15T14:59:33-05:00
New Revision: 1f21de535d37997c41b9b1ecb2f7ca0e472e9f77
URL: https://github.com/llvm/llvm-project/commit/1f21de535d37997c41b9b1ecb2f7ca0e472e9f77
DIFF: https://github.com/llvm/llvm-project/commit/1f21de535d37997c41b9b1ecb2f7ca0e472e9f77.diff
LOG: [SLP] remove unused reduction functions; NFC
These were made obsolete by simplifying the code in recent patches.
Added: 
    
Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 3f1279b67519..e1befc449492 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -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; }
        
    
    
More information about the llvm-commits
mailing list