@@ -3719,7 +3719,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3719
3719
User *Shuffle = Use.getUser ();
3720
3720
ArrayRef<int > Mask;
3721
3721
3722
- if (!match (Shuffle,
3722
+ if (!match (Shuffle,
3723
3723
m_Shuffle (m_Specific (OldLoad), m_Undef (), m_Mask (Mask))))
3724
3724
return std::nullopt;
3725
3725
@@ -3756,13 +3756,13 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3756
3756
Type *ElemTy = OldLoadTy->getElementType ();
3757
3757
FixedVectorType *NewLoadTy = FixedVectorType::get (ElemTy, NewNumElements);
3758
3758
Value *PtrOp = OldLoad->getPointerOperand ();
3759
-
3759
+
3760
3760
InstructionCost OldCost = TTI.getMemoryOpCost (
3761
3761
Instruction::Load, OldLoad->getType (), OldLoad->getAlign (),
3762
3762
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);
3766
3766
3767
3767
using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int >>;
3768
3768
auto NewUses = SmallVector<UseEntry, 4u >();
@@ -3776,7 +3776,8 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3776
3776
NewUses.push_back ({Shuffle, {}});
3777
3777
auto &NewMask = NewUses.back ().second ;
3778
3778
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);
3780
3781
3781
3782
// Update costs.
3782
3783
OldCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, OldLoadTy,
0 commit comments