@@ -3481,7 +3481,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3481
3481
Instruction::Load, NewLoad->getType (), NewLoad->getAlign (),
3482
3482
NewLoad->getPointerAddressSpace (), CostKind);
3483
3483
3484
- using UseEntry = std::pair<ShuffleVectorInst*, std::vector<int >>;
3484
+ using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int >>;
3485
3485
auto NewUses = SmallVector<UseEntry, 4u >();
3486
3486
auto SizeDiff = OldSize - NewSize;
3487
3487
@@ -3496,10 +3496,10 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3496
3496
NewMask.push_back (Index >= int (OldSize) ? Index - SizeDiff : Index);
3497
3497
3498
3498
// Update costs.
3499
- OldCost += TTI.getShuffleCost (
3500
- TTI::SK_PermuteSingleSrc, VecTy, OldMask, CostKind);
3501
- NewCost += TTI.getShuffleCost (
3502
- TTI::SK_PermuteSingleSrc, NewVecTy, NewMask, CostKind);
3499
+ OldCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, VecTy, OldMask,
3500
+ CostKind);
3501
+ NewCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, NewVecTy,
3502
+ NewMask, CostKind);
3503
3503
}
3504
3504
3505
3505
if (OldCost < NewCost || !NewCost.isValid ()) {
0 commit comments