@@ -59,14 +59,14 @@ class BPFTTIImpl : public BasicTTIImplBase<BPFTTIImpl> {
5959 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
6060 TTI::OperandValueInfo Op1Info = {TTI::OK_AnyValue, TTI::OP_None},
6161 TTI::OperandValueInfo Op2Info = {TTI::OK_AnyValue, TTI::OP_None},
62- ArrayRef<const Value *> Args = ArrayRef< const Value *>() ,
63- const Instruction *CxtI = nullptr) {
64- int ISD = TLI->InstructionOpcodeToISD (Opcode);
65- if (ISD == ISD::ADD && CostKind == TTI::TCK_RecipThroughput)
66- return SCEVCheapExpansionBudget.getValue () + 1 ;
67-
68- return BaseT::getArithmeticInstrCost (Opcode, Ty, CostKind, Op1Info,
69- Op2Info);
62+ ArrayRef<const Value *> Args = std:: nullopt ,
63+ const Instruction *CxtI = nullptr ) {
64+ int ISD = TLI->InstructionOpcodeToISD (Opcode);
65+ if (ISD == ISD::ADD && CostKind == TTI::TCK_RecipThroughput)
66+ return SCEVCheapExpansionBudget.getValue () + 1 ;
67+
68+ return BaseT::getArithmeticInstrCost (Opcode, Ty, CostKind, Op1Info,
69+ Op2Info);
7070 }
7171
7272 TTI::MemCmpExpansionOptions enableMemCmpExpansion (bool OptSize,
0 commit comments