Skip to content

Commit 6a9dd0b

Browse files
author
Leon Clark
committed
Formatting.
1 parent 0310170 commit 6a9dd0b

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
@@ -3511,7 +3511,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
35113511
User *Shuffle = Use.getUser();
35123512
ArrayRef<int> Mask;
35133513

3514-
if (!match(Shuffle,
3514+
if (!match(Shuffle,
35153515
m_Shuffle(m_Specific(OldLoad), m_Undef(), m_Mask(Mask))))
35163516
return std::nullopt;
35173517

@@ -3548,13 +3548,13 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
35483548
Type *ElemTy = OldLoadTy->getElementType();
35493549
FixedVectorType *NewLoadTy = FixedVectorType::get(ElemTy, NewNumElements);
35503550
Value *PtrOp = OldLoad->getPointerOperand();
3551-
3551+
35523552
InstructionCost OldCost = TTI.getMemoryOpCost(
35533553
Instruction::Load, OldLoad->getType(), OldLoad->getAlign(),
35543554
OldLoad->getPointerAddressSpace(), CostKind);
3555-
InstructionCost NewCost = TTI.getMemoryOpCost(
3556-
Instruction::Load, NewLoadTy, OldLoad->getAlign(),
3557-
OldLoad->getPointerAddressSpace(), CostKind);
3555+
InstructionCost NewCost =
3556+
TTI.getMemoryOpCost(Instruction::Load, NewLoadTy, OldLoad->getAlign(),
3557+
OldLoad->getPointerAddressSpace(), CostKind);
35583558

35593559
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int>>;
35603560
auto NewUses = SmallVector<UseEntry, 4u>();
@@ -3568,7 +3568,8 @@ 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 : Index);
3571+
NewMask.push_back(Index >= int(NewNumElements) ? Index - SizeDiff
3572+
: Index);
35723573

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

0 commit comments

Comments
 (0)