Skip to content

Commit fa2ebe8

Browse files
author
Leon Clark
committed
Correct renaming and remove function-style casts.
1 parent dcccc92 commit fa2ebe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,8 +3776,9 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37763776
NewUses.push_back({Shuffle, {}});
37773777
auto &NewMask = NewUses.back().second;
37783778
for (auto Index : OldMask)
3779-
NewMask.push_back(Index >= int(NewNumElements) ? Index - SizeDiff
3780-
: Index);
3779+
NewMask.push_back(Index >= static_cast<int>(OldNumElements)
3780+
? Index - SizeDiff
3781+
: Index);
37813782

37823783
// Update costs.
37833784
OldCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, OldLoadTy,

0 commit comments

Comments
 (0)