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 | 8c16b38262e60f8ce8470e43c4f45265a75b9ce6 (patch) | |
| tree | 832f4b98beb0ba76a30d4de2b317ba421cd7be8b /llvm/lib/Analysis | |
| parent | 30ff721f097c36f6ea5ef82839f54730bf91125f (diff) | |
| download | bcm5719-llvm-8c16b38262e60f8ce8470e43c4f45265a75b9ce6.tar.gz bcm5719-llvm-8c16b38262e60f8ce8470e43c4f45265a75b9ce6.zip | |
Remove unused variables and parameters.
llvm-svn: 96780
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/IVUsers.cpp | 5 | ||||
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp index 4ce68683cd3..44d72e8e0a9 100644 --- a/llvm/lib/Analysis/IVUsers.cpp +++ b/llvm/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); diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 66c45176d5e..c17f6f38c66 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2564,7 +2564,7 @@ ScalarEvolution::ForgetSymbolicName(Instruction *I, const SCEV *SymName) { SmallPtrSet<Instruction *, 8> Visited; Visited.insert(I); while (!Worklist.empty()) { - Instruction *I = Worklist.pop_back_val(); + I = Worklist.pop_back_val(); if (!Visited.insert(I)) continue; std::map<SCEVCallbackVH, const SCEV *>::iterator It = @@ -2942,7 +2942,6 @@ ScalarEvolution::getUnsignedRange(const SCEV *S) { if (const SCEVUnknown *U = dyn_cast<SCEVUnknown>(S)) { // For a SCEVUnknown, ask ValueTracking. - unsigned BitWidth = getTypeSizeInBits(U->getType()); APInt Mask = APInt::getAllOnesValue(BitWidth); APInt Zeros(BitWidth, 0), Ones(BitWidth, 0); ComputeMaskedBits(U->getValue(), Mask, Zeros, Ones, TD); @@ -5367,8 +5366,8 @@ ScalarEvolution::ScalarEvolution() bool ScalarEvolution::runOnFunction(Function &F) { this->F = &F; LI = &getAnalysis<LoopInfo>(); - DT = &getAnalysis<DominatorTree>(); TD = getAnalysisIfAvailable<TargetData>(); + DT = &getAnalysis<DominatorTree>(); return false; } |

