diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-22 04:11:59 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-22 04:11:59 +0000 |
commit | 454d26dc43207ec537d843229db6f5e6a302e23d (patch) | |
tree | 85f7e081a3035b9d1e73dcd8068fbc741f61dc64 /lib/Analysis/IVUsers.cpp | |
parent | fb76fe09297ee292129e44d723127f2408602a3d (diff) | |
download | llvm-454d26dc43207ec537d843229db6f5e6a302e23d.tar.gz llvm-454d26dc43207ec537d843229db6f5e6a302e23d.tar.bz2 llvm-454d26dc43207ec537d843229db6f5e6a302e23d.tar.xz |
Remove unused variables and parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 4ce68683cd..44d72e8e0a 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; @@ -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); |