[llvm] 5a5502b - [SLP] NFC. Use Value instead of template. (#115440)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 19:58:22 PST 2024


Author: Han-Kuan Chen
Date: 2024-11-13T11:58:19+08:00
New Revision: 5a5502b9e1ca04626f7fd03c581b6deb5cd39c13

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

LOG: [SLP] NFC. Use Value instead of template. (#115440)

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 1bf082d57b8bb0..a3ea39cea6b934 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -239,7 +239,7 @@ static bool isValidElementType(Type *Ty) {
 /// returns the type of its value operand, for Cmp - the types of the compare
 /// operands and for insertelement - the type os the inserted operand.
 /// Otherwise, just the type of the value is returned.
-template <typename T> static Type *getValueType(T *V) {
+static Type *getValueType(Value *V) {
   if (auto *SI = dyn_cast<StoreInst>(V))
     return SI->getValueOperand()->getType();
   if (auto *CI = dyn_cast<CmpInst>(V))


        


More information about the llvm-commits mailing list