mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
TargetTransformInfo: address calculation parameter for gather/scather
Address calculation for gather/scather in vectorized code can incur a significant cost making vectorization unbeneficial. Add infrastructure to add cost. Tests and cost model for targets will be in follow-up commits. radar://14351991 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -206,8 +206,9 @@ unsigned TargetTransformInfo::getNumberOfParts(Type *Tp) const {
|
||||
return PrevTTI->getNumberOfParts(Tp);
|
||||
}
|
||||
|
||||
unsigned TargetTransformInfo::getAddressComputationCost(Type *Tp) const {
|
||||
return PrevTTI->getAddressComputationCost(Tp);
|
||||
unsigned TargetTransformInfo::getAddressComputationCost(Type *Tp,
|
||||
bool IsComplex) const {
|
||||
return PrevTTI->getAddressComputationCost(Tp, IsComplex);
|
||||
}
|
||||
|
||||
namespace {
|
||||
@@ -559,7 +560,7 @@ struct NoTTI : ImmutablePass, TargetTransformInfo {
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned getAddressComputationCost(Type *Tp) const {
|
||||
unsigned getAddressComputationCost(Type *Tp, bool) const {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user