Skip to content

Commit

Permalink
[SLP] NFC. Use Value instead of template. (llvm#115440)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanKuanChen authored and akshayrdeodhar committed Nov 18, 2024
1 parent c4a56b2 commit 084c9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 084c9f2

Please sign in to comment.