From 8480bc5b5b0d75c2cfa08d71c29dc98c20e5882c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 29 Oct 2007 19:31:25 +0000 Subject: [PATCH] Remove an unused function argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43462 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 5b1b448875d..a8267d8d68b 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -171,7 +171,7 @@ namespace { private: bool AddUsersIfInteresting(Instruction *I, Loop *L, SmallPtrSet &Processed); - SCEVHandle GetExpressionSCEV(Instruction *E, Loop *L); + SCEVHandle GetExpressionSCEV(Instruction *E); ICmpInst *ChangeCompareStride(Loop *L, ICmpInst *Cond, IVStrideUse* &CondUse, const SCEVHandle* &CondStride); @@ -242,13 +242,13 @@ DeleteTriviallyDeadInstructions(SmallPtrSet &Insts) { /// GetExpressionSCEV - Compute and return the SCEV for the specified /// instruction. -SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp, Loop *L) { +SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp) { // Pointer to pointer bitcast instructions return the same value as their // operand. if (BitCastInst *BCI = dyn_cast(Exp)) { if (SE->hasSCEV(BCI) || !isa(BCI->getOperand(0))) return SE->getSCEV(BCI); - SCEVHandle R = GetExpressionSCEV(cast(BCI->getOperand(0)), L); + SCEVHandle R = GetExpressionSCEV(cast(BCI->getOperand(0))); SE->setSCEV(BCI, R); return R; } @@ -262,8 +262,8 @@ SCEVHandle LoopStrengthReduce::GetExpressionSCEV(Instruction *Exp, Loop *L) { return SE->getSCEV(Exp); // Analyze all of the subscripts of this getelementptr instruction, looking - // for uses that are determined by the trip count of L. First, skip all - // operands the are not dependent on the IV. + // for uses that are determined by the trip count of the loop. First, skip + // all operands the are not dependent on the IV. // Build up the base expression. Insert an LLVM cast of the pointer to // uintptr_t first. @@ -417,7 +417,7 @@ bool LoopStrengthReduce::AddUsersIfInteresting(Instruction *I, Loop *L, return true; // Instruction already handled. // Get the symbolic expression for this instruction. - SCEVHandle ISE = GetExpressionSCEV(I, L); + SCEVHandle ISE = GetExpressionSCEV(I); if (isa(ISE)) return false; // Get the start and stride for this expression. -- 2.34.1