@@ -913,7 +913,7 @@ class TargetTransformInfo {
913913 // / Insert is true.
914914 InstructionCost getScalarizationOverhead (
915915 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract,
916- TTI::TargetCostKind CostKind, ArrayRef<Value *> VL = std:: nullopt ) const ;
916+ TTI::TargetCostKind CostKind, ArrayRef<Value *> VL = {} ) const ;
917917
918918 // / Estimate the overhead of scalarizing an instructions unique
919919 // / non-constant operands. The (potentially vector) types to use for each of
@@ -2004,7 +2004,7 @@ class TargetTransformInfo::Concept {
20042004 virtual InstructionCost
20052005 getScalarizationOverhead (VectorType *Ty, const APInt &DemandedElts,
20062006 bool Insert, bool Extract, TargetCostKind CostKind,
2007- ArrayRef<Value *> VL = std:: nullopt ) = 0 ;
2007+ ArrayRef<Value *> VL = {} ) = 0 ;
20082008 virtual InstructionCost
20092009 getOperandsScalarizationOverhead (ArrayRef<const Value *> Args,
20102010 ArrayRef<Type *> Tys,
@@ -2585,7 +2585,7 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
25852585 InstructionCost
25862586 getScalarizationOverhead (VectorType *Ty, const APInt &DemandedElts,
25872587 bool Insert, bool Extract, TargetCostKind CostKind,
2588- ArrayRef<Value *> VL = std:: nullopt ) override {
2588+ ArrayRef<Value *> VL = {} ) override {
25892589 return Impl.getScalarizationOverhead (Ty, DemandedElts, Insert, Extract,
25902590 CostKind, VL);
25912591 }
0 commit comments