@@ -834,7 +834,7 @@ class TargetTransformInfo {
834
834
// / If the AM is not supported, it returns a negative value.
835
835
// / TODO: Handle pre/postinc as well.
836
836
InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
837
- int64_t BaseOffset, bool HasBaseReg,
837
+ StackOffset BaseOffset, bool HasBaseReg,
838
838
int64_t Scale,
839
839
unsigned AddrSpace = 0 ) const ;
840
840
@@ -1891,7 +1891,7 @@ class TargetTransformInfo::Concept {
1891
1891
virtual bool hasVolatileVariant (Instruction *I, unsigned AddrSpace) = 0;
1892
1892
virtual bool prefersVectorizedAddressing () = 0;
1893
1893
virtual InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
1894
- int64_t BaseOffset,
1894
+ StackOffset BaseOffset,
1895
1895
bool HasBaseReg, int64_t Scale,
1896
1896
unsigned AddrSpace) = 0;
1897
1897
virtual bool LSRWithInstrQueries () = 0;
@@ -2403,7 +2403,7 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
2403
2403
return Impl.prefersVectorizedAddressing ();
2404
2404
}
2405
2405
InstructionCost getScalingFactorCost (Type *Ty, GlobalValue *BaseGV,
2406
- int64_t BaseOffset, bool HasBaseReg,
2406
+ StackOffset BaseOffset, bool HasBaseReg,
2407
2407
int64_t Scale,
2408
2408
unsigned AddrSpace) override {
2409
2409
return Impl.getScalingFactorCost (Ty, BaseGV, BaseOffset, HasBaseReg, Scale,
0 commit comments