@@ -3774,7 +3774,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3774
3774
Instruction::Load, NewLoad->getType (), NewLoad->getAlign (),
3775
3775
NewLoad->getPointerAddressSpace (), CostKind);
3776
3776
3777
- using UseEntry = std::pair<ShuffleVectorInst*, std::vector<int >>;
3777
+ using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int >>;
3778
3778
auto NewUses = SmallVector<UseEntry, 4u >();
3779
3779
auto SizeDiff = OldSize - NewSize;
3780
3780
@@ -3789,10 +3789,10 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3789
3789
NewMask.push_back (Index >= int (OldSize) ? Index - SizeDiff : Index);
3790
3790
3791
3791
// Update costs.
3792
- OldCost += TTI.getShuffleCost (
3793
- TTI::SK_PermuteSingleSrc, VecTy, OldMask, CostKind);
3794
- NewCost += TTI.getShuffleCost (
3795
- TTI::SK_PermuteSingleSrc, NewVecTy, NewMask, CostKind);
3792
+ OldCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, VecTy, OldMask,
3793
+ CostKind);
3794
+ NewCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, NewVecTy,
3795
+ NewMask, CostKind);
3796
3796
}
3797
3797
3798
3798
if (OldCost < NewCost || !NewCost.isValid ()) {
0 commit comments