Skip to content

Commit dcccc92

Browse files
author
Leon Clark
committed
Formatting.
1 parent 76450c9 commit dcccc92

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37193719
User *Shuffle = Use.getUser();
37203720
ArrayRef<int> Mask;
37213721

3722-
if (!match(Shuffle,
3722+
if (!match(Shuffle,
37233723
m_Shuffle(m_Specific(OldLoad), m_Undef(), m_Mask(Mask))))
37243724
return std::nullopt;
37253725

@@ -3756,13 +3756,13 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
37563756
Type *ElemTy = OldLoadTy->getElementType();
37573757
FixedVectorType *NewLoadTy = FixedVectorType::get(ElemTy, NewNumElements);
37583758
Value *PtrOp = OldLoad->getPointerOperand();
3759-
3759+
37603760
InstructionCost OldCost = TTI.getMemoryOpCost(
37613761
Instruction::Load, OldLoad->getType(), OldLoad->getAlign(),
37623762
OldLoad->getPointerAddressSpace(), CostKind);
3763-
InstructionCost NewCost = TTI.getMemoryOpCost(
3764-
Instruction::Load, NewLoadTy, OldLoad->getAlign(),
3765-
OldLoad->getPointerAddressSpace(), CostKind);
3763+
InstructionCost NewCost =
3764+
TTI.getMemoryOpCost(Instruction::Load, NewLoadTy, OldLoad->getAlign(),
3765+
OldLoad->getPointerAddressSpace(), CostKind);
37663766

37673767
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int>>;
37683768
auto NewUses = SmallVector<UseEntry, 4u>();
@@ -3776,7 +3776,8 @@ 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 : Index);
3779+
NewMask.push_back(Index >= int(NewNumElements) ? Index - SizeDiff
3780+
: Index);
37803781

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

0 commit comments

Comments
 (0)