We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863f10f commit 5f122f6Copy full SHA for 5f122f6
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3782,10 +3782,12 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction &I) {
3782
: Index);
3783
3784
// Update costs.
3785
- OldCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, OldLoadTy,
3786
- OldMask, CostKind);
3787
- NewCost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, NewLoadTy,
3788
- NewMask, CostKind);
+ OldCost +=
+ TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, Shuffle->getType(),
+ OldLoadTy, OldMask, CostKind);
+ NewCost +=
3789
3790
+ NewLoadTy, NewMask, CostKind);
3791
}
3792
3793
if (OldCost < NewCost || !NewCost.isValid())
0 commit comments