File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9364,7 +9364,7 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals) {
9364
9364
VectorCasts
9365
9365
.insert(std::make_pair(ScalarTE, FTy->getElementType()))
9366
9366
.second) {
9367
- unsigned BWSz = It->second.second ;
9367
+ unsigned BWSz = It->second.first ;
9368
9368
unsigned DstBWSz = DL->getTypeSizeInBits(FTy->getElementType());
9369
9369
unsigned VecOpcode;
9370
9370
if (DstBWSz < BWSz)
@@ -9376,7 +9376,7 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals) {
9376
9376
InstructionCost C = TTI->getCastInstrCost(
9377
9377
VecOpcode, FTy,
9378
9378
FixedVectorType::get(
9379
- IntegerType::get(FTy->getContext(), It->second.first ),
9379
+ IntegerType::get(FTy->getContext(), BWSz ),
9380
9380
FTy->getNumElements()),
9381
9381
TTI::CastContextHint::None, CostKind);
9382
9382
LLVM_DEBUG(dbgs() << "SLP: Adding cost " << C
You can’t perform that action at this time.
0 commit comments