From 084c9f2fb20718a5f17ee640d490a500016b3829 Mon Sep 17 00:00:00 2001 From: Han-Kuan Chen Date: Wed, 13 Nov 2024 11:58:19 +0800 Subject: [PATCH] [SLP] NFC. Use Value instead of template. (#115440) --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 1bf082d57b8bb04..a3ea39cea6b9340 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 static Type *getValueType(T *V) { +static Type *getValueType(Value *V) { if (auto *SI = dyn_cast(V)) return SI->getValueOperand()->getType(); if (auto *CI = dyn_cast(V))