diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 | 
| commit | ee2f195dd3e40f49698ca4dc2666ec09c770e80d (patch) | |
| tree | 66fa9a69e5789356dfe844991e64bac9222f3a35 /lib/Analysis | |
| parent | ab44ce3d598882e51a25eb82eb7ae6308de85ae6 (diff) | |
Notes
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index d280fda0a162..f55ce202bcbb 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2178,8 +2178,7 @@ StrengthenNoWrapFlags(ScalarEvolution *SE, SCEVTypes Type,    return Flags;  } -bool ScalarEvolution::isAvailableAtLoopEntry(const SCEV *S, const Loop *L, -                                             DominatorTree &DT, LoopInfo &LI) { +bool ScalarEvolution::isAvailableAtLoopEntry(const SCEV *S, const Loop *L) {    if (!isLoopInvariant(S, L))      return false;    // If a value depends on a SCEVUnknown which is defined after the loop, we @@ -2516,7 +2515,7 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,      const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);      const Loop *AddRecLoop = AddRec->getLoop();      for (unsigned i = 0, e = Ops.size(); i != e; ++i) -      if (isAvailableAtLoopEntry(Ops[i], AddRecLoop, DT, LI)) { +      if (isAvailableAtLoopEntry(Ops[i], AddRecLoop)) {          LIOps.push_back(Ops[i]);          Ops.erase(Ops.begin()+i);          --i; --e; @@ -2791,7 +2790,7 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops,      const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ops[Idx]);      const Loop *AddRecLoop = AddRec->getLoop();      for (unsigned i = 0, e = Ops.size(); i != e; ++i) -      if (isAvailableAtLoopEntry(Ops[i], AddRecLoop, DT, LI)) { +      if (isAvailableAtLoopEntry(Ops[i], AddRecLoop)) {          LIOps.push_back(Ops[i]);          Ops.erase(Ops.begin()+i);          --i; --e; | 
