Skip to content

Commit 5b63d6f

Browse files
author
Leon Clark
committed
Code formatting.
1 parent 6534370 commit 5b63d6f

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
@@ -3566,7 +3566,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
35663566
Instruction::Load, NewLoad->getType(), NewLoad->getAlign(),
35673567
NewLoad->getPointerAddressSpace(), CostKind);
35683568

3569-
using UseEntry = std::pair<ShuffleVectorInst*, std::vector<int>>;
3569+
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int>>;
35703570
auto NewUses = SmallVector<UseEntry, 4u>();
35713571
auto SizeDiff = OldSize - NewSize;
35723572

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

35833583
// Update costs.
3584-
OldCost += TTI.getShuffleCost(
3585-
TTI::SK_PermuteSingleSrc, VecTy, OldMask, CostKind);
3586-
NewCost += TTI.getShuffleCost(
3587-
TTI::SK_PermuteSingleSrc, NewVecTy, NewMask, CostKind);
3584+
OldCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, VecTy, OldMask,
3585+
CostKind);
3586+
NewCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, NewVecTy,
3587+
NewMask, CostKind);
35883588
}
35893589

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

0 commit comments

Comments
 (0)