diff options
| author | Devang Patel <dpatel@apple.com> | 2008-08-13 20:31:11 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-08-13 20:31:11 +0000 |
| commit | 6369a798ba4fa6c5d1822695669d2111d0696e4c (patch) | |
| tree | fe4eb08524887c91e1b6b5c755e5c0fb252935ce /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | ea68a6ccdfa257d3dbf777180e96c2e29ac2df21 (diff) | |
| download | bcm5719-llvm-6369a798ba4fa6c5d1822695669d2111d0696e4c.tar.gz bcm5719-llvm-6369a798ba4fa6c5d1822695669d2111d0696e4c.zip | |
Rename. s/FindIVForUser/FindIVUserForCond/g
llvm-svn: 54754
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index f47a5afcfc5..04faa0aa508 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -177,7 +177,7 @@ private: IVStrideUse* &CondUse, const SCEVHandle* &CondStride); void OptimizeIndvars(Loop *L); - bool FindIVForUser(ICmpInst *Cond, IVStrideUse *&CondUse, + bool FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse, const SCEVHandle *&CondStride); bool RequiresTypeConversion(const Type *Ty, const Type *NewTy); unsigned CheckForIVReuse(bool, bool, const SCEVHandle&, @@ -1453,10 +1453,10 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride, // different starting values, into different PHIs. } -/// FindIVForUser - If Cond has an operand that is an expression of an IV, +/// FindIVUserForCond - If Cond has an operand that is an expression of an IV, /// set the IV user and stride information and return true, otherwise return /// false. -bool LoopStrengthReduce::FindIVForUser(ICmpInst *Cond, IVStrideUse *&CondUse, +bool LoopStrengthReduce::FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse, const SCEVHandle *&CondStride) { for (unsigned Stride = 0, e = StrideOrder.size(); Stride != e && !CondUse; ++Stride) { @@ -1713,7 +1713,7 @@ void LoopStrengthReduce::OptimizeIndvars(Loop *L) { IVStrideUse *CondUse = 0; const SCEVHandle *CondStride = 0; - if (!FindIVForUser(Cond, CondUse, CondStride)) + if (!FindIVUserForCond(Cond, CondUse, CondStride)) return; // setcc doesn't use the IV. // If possible, change stride and operands of the compare instruction to |

