diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
| commit | 67a71b3184ce20a901e874d0ee25e01397dd87ef (patch) | |
| tree | 836a05cff50ca46176117b86029f061fa4db54f0 /lib/Analysis/IVUsers.cpp | |
| parent | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (diff) | |
Notes
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
| -rw-r--r-- | lib/Analysis/IVUsers.cpp | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 4ce68683cd3e..98a436f79bd8 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -142,8 +142,7 @@ static bool getSCEVStartAndStride(const SCEV *&SH, Loop *L, Loop *UseLoop,  /// the loop, resulting in reg-reg copies (if we use the pre-inc value when we  /// should use the post-inc value).  static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV, -                                       Loop *L, LoopInfo *LI, DominatorTree *DT, -                                       Pass *P) { +                                       Loop *L, DominatorTree *DT) {    // If the user is in the loop, use the preinc value.    if (L->contains(User)) return false; @@ -223,7 +222,7 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) {      // Descend recursively, but not into PHI nodes outside the current loop.      // It's important to see the entire expression outside the loop to get      // choices that depend on addressing mode use right, although we won't -    // consider references ouside the loop in all cases. +    // consider references outside the loop in all cases.      // If User is already in Processed, we don't want to recurse into it again,      // but do want to record a second reference in the same instruction.      bool AddUserToIVUsers = false; @@ -245,7 +244,7 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) {        // Okay, we found a user that we cannot reduce.  Analyze the instruction        // and decide what to do with it.  If we are a use inside of the loop, use        // the value before incrementation, otherwise use it after incrementation. -      if (IVUseShouldUsePostIncValue(User, I, L, LI, DT, this)) { +      if (IVUseShouldUsePostIncValue(User, I, L, DT)) {          // The value used will be incremented by the stride more than we are          // expecting, so subtract this off.          const SCEV *NewStart = SE->getMinusSCEV(Start, Stride); @@ -331,7 +330,7 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {    }    OS << ":\n"; -  // Use a defualt AssemblyAnnotationWriter to suppress the default info +  // Use a default AssemblyAnnotationWriter to suppress the default info    // comments, which aren't relevant here.    AssemblyAnnotationWriter Annotator;    for (ilist<IVStrideUse>::const_iterator UI = IVUses.begin(), | 
