diff options
| author | Dan Gohman <gohman@apple.com> | 2010-11-17 21:41:58 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-11-17 21:41:58 +0000 |
| commit | 20d9ce21ef2c43fa1a4acb625c183936276217ba (patch) | |
| tree | 0d0d1d9db8981c64d9d57c69973918b53562a801 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp | |
| parent | b4a7c0385df9943c69656051b1b76ed9a3954947 (diff) | |
| download | bcm5719-llvm-20d9ce21ef2c43fa1a4acb625c183936276217ba.tar.gz bcm5719-llvm-20d9ce21ef2c43fa1a4acb625c183936276217ba.zip | |
Move SCEV::dominates and properlyDominates to ScalarEvolution.
llvm-svn: 119570
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index 409d9b5f7fa..d9eb8c1ca65 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp @@ -990,7 +990,7 @@ Value *SCEVExpander::expandAddRecExprLiterally(const SCEVAddRecExpr *S) { // Strip off any non-loop-dominating component from the addrec start. const SCEV *Start = Normalized->getStart(); const SCEV *PostLoopOffset = 0; - if (!Start->properlyDominates(L->getHeader(), SE.DT)) { + if (!SE.properlyDominates(Start, L->getHeader())) { PostLoopOffset = Start; Start = SE.getConstant(Normalized->getType(), 0); Normalized = @@ -1002,7 +1002,7 @@ Value *SCEVExpander::expandAddRecExprLiterally(const SCEVAddRecExpr *S) { // Strip off any non-loop-dominating component from the addrec step. const SCEV *Step = Normalized->getStepRecurrence(SE); const SCEV *PostLoopScale = 0; - if (!Step->dominates(L->getHeader(), SE.DT)) { + if (!SE.dominates(Step, L->getHeader())) { PostLoopScale = Step; Step = SE.getConstant(Normalized->getType(), 1); Normalized = |

