@@ -834,9 +834,9 @@ class TargetTransformInfo {
834834 // / If the AM is not supported, it returns a negative value.
835835 // / TODO: Handle pre/postinc as well.
836836 InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
837- int64_t BaseOffset, bool HasBaseReg,
838- int64_t Scale, unsigned AddrSpace = 0 ,
839- int64_t ScalableOffset = 0 ) const ;
837+ StackOffset BaseOffset, bool HasBaseReg,
838+ int64_t Scale,
839+ unsigned AddrSpace = 0 ) const ;
840840
841841 // / Return true if the loop strength reduce pass should make
842842 // / Instruction* based TTI queries to isLegalAddressingMode(). This is
@@ -1891,10 +1891,9 @@ class TargetTransformInfo::Concept {
18911891 virtual bool hasVolatileVariant (Instruction *I, unsigned AddrSpace) = 0;
18921892 virtual bool prefersVectorizedAddressing () = 0;
18931893 virtual InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
1894- int64_t BaseOffset,
1894+ StackOffset BaseOffset,
18951895 bool HasBaseReg, int64_t Scale,
1896- unsigned AddrSpace,
1897- int64_t ScalableOffset) = 0;
1896+ unsigned AddrSpace) = 0;
18981897 virtual bool LSRWithInstrQueries () = 0;
18991898 virtual bool isTruncateFree (Type *Ty1, Type *Ty2) = 0;
19001899 virtual bool isProfitableToHoist (Instruction *I) = 0;
@@ -2404,11 +2403,11 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
24042403 return Impl.prefersVectorizedAddressing ();
24052404 }
24062405 InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
2407- int64_t BaseOffset, bool HasBaseReg,
2408- int64_t Scale, unsigned AddrSpace,
2409- int64_t ScalableOffset ) override {
2406+ StackOffset BaseOffset, bool HasBaseReg,
2407+ int64_t Scale,
2408+ unsigned AddrSpace ) override {
24102409 return Impl.getScalingFactorCost (Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
2411- AddrSpace, ScalableOffset );
2410+ AddrSpace);
24122411 }
24132412 bool LSRWithInstrQueries () override { return Impl.LSRWithInstrQueries (); }
24142413 bool isTruncateFree (Type *Ty1, Type *Ty2) override {
0 commit comments