Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | public: | ||||
unsigned getGISelRematGlobalCost() const { | unsigned getGISelRematGlobalCost() const { | ||||
return 2; | return 2; | ||||
} | } | ||||
unsigned getMinTripCountTailFoldingThreshold() const { | unsigned getMinTripCountTailFoldingThreshold() const { | ||||
return ST->hasSVE() ? 5 : 0; | return ST->hasSVE() ? 5 : 0; | ||||
} | } | ||||
TailFoldingStyle getPreferredTailFoldingStyle() const { | TailFoldingStyle getPreferredTailFoldingStyle(bool IVUpdateMayOverflow) const { | ||||
if (ST->hasSVE()) | if (ST->hasSVE()) | ||||
return TailFoldingStyle::DataAndControlFlowWithoutRuntimeCheck; | return IVUpdateMayOverflow | ||||
? TailFoldingStyle::DataAndControlFlowWithoutRuntimeCheck | |||||
: TailFoldingStyle::DataAndControlFlow; | |||||
return TailFoldingStyle::DataWithoutLaneMask; | return TailFoldingStyle::DataWithoutLaneMask; | ||||
} | } | ||||
bool preferPredicateOverEpilogue(Loop *L, LoopInfo *LI, ScalarEvolution &SE, | bool preferPredicateOverEpilogue(Loop *L, LoopInfo *LI, ScalarEvolution &SE, | ||||
AssumptionCache &AC, TargetLibraryInfo *TLI, | AssumptionCache &AC, TargetLibraryInfo *TLI, | ||||
DominatorTree *DT, | DominatorTree *DT, | ||||
LoopVectorizationLegality *LVL, | LoopVectorizationLegality *LVL, | ||||
InterleavedAccessInfo *IAI); | InterleavedAccessInfo *IAI); | ||||
Show All 39 Lines |