@@ -471,7 +471,9 @@ class TargetTransformInfoImplBase {
471471
472472 bool haveFastSqrt (Type *Ty) const { return false ; }
473473
474- bool isExpensiveToSpeculativelyExecute (const Instruction *I) { return true ; }
474+ bool isExpensiveToSpeculativelyExecute (const Instruction *I) const {
475+ return true ;
476+ }
475477
476478 bool isFCmpOrdCheaperThanFCmpZero (Type *Ty) const { return true ; }
477479
@@ -745,9 +747,10 @@ class TargetTransformInfoImplBase {
745747 return 1 ;
746748 }
747749
748- unsigned getReplicationShuffleCost (Type *EltTy, int ReplicationFactor, int VF,
749- const APInt &DemandedDstElts,
750- TTI::TargetCostKind CostKind) const {
750+ InstructionCost
751+ getReplicationShuffleCost (Type *EltTy, int ReplicationFactor, int VF,
752+ const APInt &DemandedDstElts,
753+ TTI::TargetCostKind CostKind) const {
751754 return 1 ;
752755 }
753756
@@ -805,7 +808,7 @@ class TargetTransformInfoImplBase {
805808 return InstructionCost::getInvalid ();
806809 }
807810
808- unsigned getInterleavedMemoryOpCost (
811+ InstructionCost getInterleavedMemoryOpCost (
809812 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned > Indices,
810813 Align Alignment, unsigned AddressSpace, TTI::TargetCostKind CostKind,
811814 bool UseMaskForCond, bool UseMaskForGaps) const {
@@ -965,13 +968,11 @@ class TargetTransformInfoImplBase {
965968 Callee->getFnAttribute (" target-features" ));
966969 }
967970
968- bool isIndexedLoadLegal (TTI::MemIndexedMode Mode, Type *Ty,
969- const DataLayout &DL) const {
971+ bool isIndexedLoadLegal (TTI::MemIndexedMode Mode, Type *Ty) const {
970972 return false ;
971973 }
972974
973- bool isIndexedStoreLegal (TTI::MemIndexedMode Mode, Type *Ty,
974- const DataLayout &DL) const {
975+ bool isIndexedStoreLegal (TTI::MemIndexedMode Mode, Type *Ty) const {
975976 return false ;
976977 }
977978
0 commit comments