Skip to content

Commit be339fd

Browse files
authored
[SLP] NFC. Reduce redundant assignment. (#96149)
1 parent 8984113 commit be339fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9060,17 +9060,15 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
90609060
}
90619061
if (!isValidElementType(ScalarTy))
90629062
return InstructionCost::getInvalid();
9063-
auto *VecTy = FixedVectorType::get(ScalarTy, VL.size());
90649063
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput;
90659064

90669065
// If we have computed a smaller type for the expression, update VecTy so
90679066
// that the costs will be accurate.
90689067
auto It = MinBWs.find(E);
90699068
Type *OrigScalarTy = ScalarTy;
9070-
if (It != MinBWs.end()) {
9069+
if (It != MinBWs.end())
90719070
ScalarTy = IntegerType::get(F->getContext(), It->second.first);
9072-
VecTy = FixedVectorType::get(ScalarTy, VL.size());
9073-
}
9071+
auto *VecTy = FixedVectorType::get(ScalarTy, VL.size());
90749072
unsigned EntryVF = E->getVectorFactor();
90759073
auto *FinalVecTy = FixedVectorType::get(ScalarTy, EntryVF);
90769074

0 commit comments

Comments
 (0)