Skip to content

Commit 125c3f2

Browse files
author
Leon Clark
committed
Code formatting.
1 parent dfe3459 commit 125c3f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37743774
Instruction::Load, NewLoad->getType(), NewLoad->getAlign(),
37753775
NewLoad->getPointerAddressSpace(), CostKind);
37763776

3777-
using UseEntry = std::pair<ShuffleVectorInst*, std::vector<int>>;
3777+
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int>>;
37783778
auto NewUses = SmallVector<UseEntry, 4u>();
37793779
auto SizeDiff = OldSize - NewSize;
37803780

@@ -3789,10 +3789,10 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37893789
NewMask.push_back(Index >= int(OldSize) ? Index - SizeDiff : Index);
37903790

37913791
// Update costs.
3792-
OldCost += TTI.getShuffleCost(
3793-
TTI::SK_PermuteSingleSrc, VecTy, OldMask, CostKind);
3794-
NewCost += TTI.getShuffleCost(
3795-
TTI::SK_PermuteSingleSrc, NewVecTy, NewMask, CostKind);
3792+
OldCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, VecTy, OldMask,
3793+
CostKind);
3794+
NewCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, NewVecTy,
3795+
NewMask, CostKind);
37963796
}
37973797

37983798
if (OldCost < NewCost || !NewCost.isValid()) {

0 commit comments

Comments
 (0)