@@ -3511,7 +3511,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3511
3511
User *Shuffle = Use.getUser ();
3512
3512
ArrayRef<int > Mask;
3513
3513
3514
- if (!match (Shuffle,
3514
+ if (!match (Shuffle,
3515
3515
m_Shuffle (m_Specific (OldLoad), m_Undef (), m_Mask (Mask))))
3516
3516
return std::nullopt;
3517
3517
@@ -3548,13 +3548,13 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3548
3548
Type *ElemTy = OldLoadTy->getElementType ();
3549
3549
FixedVectorType *NewLoadTy = FixedVectorType::get (ElemTy, NewNumElements);
3550
3550
Value *PtrOp = OldLoad->getPointerOperand ();
3551
-
3551
+
3552
3552
InstructionCost OldCost = TTI.getMemoryOpCost (
3553
3553
Instruction::Load, OldLoad->getType (), OldLoad->getAlign (),
3554
3554
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);
3558
3558
3559
3559
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int >>;
3560
3560
auto NewUses = SmallVector<UseEntry, 4u >();
@@ -3568,7 +3568,8 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3568
3568
NewUses.push_back ({Shuffle, {}});
3569
3569
auto &NewMask = NewUses.back ().second ;
3570
3570
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);
3572
3573
3573
3574
// Update costs.
3574
3575
OldCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, OldLoadTy,
0 commit comments