@@ -3566,7 +3566,7 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3566
3566
Instruction::Load, NewLoad->getType (), NewLoad->getAlign (),
3567
3567
NewLoad->getPointerAddressSpace (), CostKind);
3568
3568
3569
- using UseEntry = std::pair<ShuffleVectorInst*, std::vector<int >>;
3569
+ using UseEntry = std::pair<ShuffleVectorInst *, std::vector<int >>;
3570
3570
auto NewUses = SmallVector<UseEntry, 4u >();
3571
3571
auto SizeDiff = OldSize - NewSize;
3572
3572
@@ -3581,10 +3581,10 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3581
3581
NewMask.push_back (Index >= int (OldSize) ? Index - SizeDiff : Index);
3582
3582
3583
3583
// Update costs.
3584
- OldCost += TTI.getShuffleCost (
3585
- TTI::SK_PermuteSingleSrc, VecTy, OldMask, CostKind);
3586
- NewCost += TTI.getShuffleCost (
3587
- TTI::SK_PermuteSingleSrc, NewVecTy, NewMask, CostKind);
3584
+ OldCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, VecTy, OldMask,
3585
+ CostKind);
3586
+ NewCost += TTI.getShuffleCost (TTI::SK_PermuteSingleSrc, NewVecTy,
3587
+ NewMask, CostKind);
3588
3588
}
3589
3589
3590
3590
if (OldCost < NewCost || !NewCost.isValid ()) {
0 commit comments