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 {
12021202 CallWideningDecision getCallWideningDecision (CallInst *CI,
12031203 ElementCount VF) const {
12041204 assert (!VF.isScalar () && " Expected vector VF" );
1205- return CallWideningDecisions.at (std::make_pair ( CI, VF) );
1205+ return CallWideningDecisions.at ({ CI, VF} );
12061206 }
12071207
12081208 // / Return True if instruction \p I is an optimizable truncate whose operand
@@ -2817,7 +2817,7 @@ LoopVectorizationCostModel::getVectorCallCost(CallInst *CI,
28172817 // We only need to calculate a cost if the VF is scalar; for actual vectors
28182818 // we should already have a pre-calculated cost at each VF.
28192819 if (!VF.isScalar ())
2820- return CallWideningDecisions. at ( std::make_pair ( CI, VF) ).Cost ;
2820+ return getCallWideningDecision ( CI, VF).Cost ;
28212821
28222822 Type *RetTy = CI->getType ();
28232823 if (RecurrenceDescriptor::isFMulAddIntrinsic (CI))
@@ -3216,8 +3216,7 @@ bool LoopVectorizationCostModel::isScalarWithPredication(
32163216 case Instruction::Call:
32173217 if (VF.isScalar ())
32183218 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;
32213220 case Instruction::Load:
32223221 case Instruction::Store: {
32233222 auto *Ptr = getLoadStorePointerOperand (I);
You can’t perform that action at this time.
0 commit comments