File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1202,7 +1202,7 @@ class LoopVectorizationCostModel {
1202
1202
CallWideningDecision getCallWideningDecision (CallInst *CI,
1203
1203
ElementCount VF) const {
1204
1204
assert (!VF.isScalar () && " Expected vector VF" );
1205
- return CallWideningDecisions.at (std::make_pair ( CI, VF) );
1205
+ return CallWideningDecisions.at ({ CI, VF} );
1206
1206
}
1207
1207
1208
1208
// / Return True if instruction \p I is an optimizable truncate whose operand
@@ -2817,7 +2817,7 @@ LoopVectorizationCostModel::getVectorCallCost(CallInst *CI,
2817
2817
// We only need to calculate a cost if the VF is scalar; for actual vectors
2818
2818
// we should already have a pre-calculated cost at each VF.
2819
2819
if (!VF.isScalar ())
2820
- return CallWideningDecisions. at ( std::make_pair ( CI, VF) ).Cost ;
2820
+ return getCallWideningDecision ( CI, VF).Cost ;
2821
2821
2822
2822
Type *RetTy = CI->getType ();
2823
2823
if (RecurrenceDescriptor::isFMulAddIntrinsic (CI))
@@ -3216,8 +3216,7 @@ bool LoopVectorizationCostModel::isScalarWithPredication(
3216
3216
case Instruction::Call:
3217
3217
if (VF.isScalar ())
3218
3218
return true ;
3219
- return CallWideningDecisions.at (std::make_pair (cast<CallInst>(I), VF))
3220
- .Kind == CM_Scalarize;
3219
+ return getCallWideningDecision (cast<CallInst>(I), VF).Kind == CM_Scalarize;
3221
3220
case Instruction::Load:
3222
3221
case Instruction::Store: {
3223
3222
auto *Ptr = getLoadStorePointerOperand (I);
You can’t perform that action at this time.
0 commit comments