1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Analysis
Sander de Smalen 3bbfdfb241 [CostModel] Express cost(urem) as cost(div+mul+sub) when set to Expand.
The Legalizer expands the operations of urem/srem into a div+mul+sub or divrem
when those are legal/custom. This patch changes the cost-model to reflect that
cost.

Since there is no 'divrem' Instruction in LLVM IR, the cost of divrem
is assumed to be the same as div+mul+sub since the three operations will
need to be executed at runtime regardless.

Patch co-authored by David Sherwood (@david-arm)

Reviewed By: RKSimon, paulwalker-arm

Differential Revision: https://reviews.llvm.org/D103799
2021-07-07 14:40:28 +01:00
..
AliasSet
AssumptionCache
BasicAA [BasicAA] Use separate scale variable for GCD. 2021-06-30 20:04:39 +01:00
BlockFrequencyInfo
BranchProbabilityInfo Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
CallGraph
CFLAliasAnalysis
CostModel [CostModel] Express cost(urem) as cost(div+mul+sub) when set to Expand. 2021-07-07 14:40:28 +01:00
DDG
Delinearization [SCEV] Support signed predicates in applyLoopGuards. 2021-06-23 10:21:05 +01:00
DemandedBits Add getDemandedBits for uses. 2021-06-02 10:07:40 -04:00
DependenceAnalysis Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
DivergenceAnalysis
DominanceFrontier
Dominators
FunctionPropertiesAnalysis
GlobalsModRef
IRSimilarityIdentifier
IVUsers
LazyCallGraph
LazyValueAnalysis
LegacyDivergenceAnalysis
Lint
LoopAccessAnalysis [SCEV] Retain AddExpr flags when subtracting a foldable constant. 2021-06-22 11:27:51 +01:00
LoopCacheAnalysis/PowerPC
LoopInfo
LoopNestAnalysis
MemoryDependenceAnalysis Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
MemorySSA Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
MustExecute
PhiValues
PostDominators
ProfileSummary
RegionInfo
ScalarEvolution [SCEV] Fold (0 udiv %x) to 0 2021-06-30 08:31:13 -07:00
ScopedNoAliasAA
StackSafetyAnalysis Recommit [ScalarEvolution] Make getMinusSCEV() fail for unrelated pointers. 2021-07-06 12:16:05 -07:00
TypeBasedAliasAnalysis Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
ValueTracking
alias-analysis-uses.ll