Skip to content

Commit 019e39f

Browse files
author
Leon Clark
committed
Correct renaming and remove function-style casts.
1 parent 6a9dd0b commit 019e39f

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
@@ -3568,8 +3568,9 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
35683568
NewUses.push_back({Shuffle, {}});
35693569
auto &NewMask = NewUses.back().second;
35703570
for (auto Index : OldMask)
3571-
NewMask.push_back(Index >= int(NewNumElements) ? Index - SizeDiff
3572-
: Index);
3571+
NewMask.push_back(Index >= static_cast<int>(OldNumElements)
3572+
? Index - SizeDiff
3573+
: Index);
35733574

35743575
// Update costs.
35753576
OldCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, OldLoadTy,

0 commit comments

Comments
 (0)