diff options
| author | Dan Gohman <gohman@apple.com> | 2009-03-09 20:41:15 +0000 | 
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-03-09 20:41:15 +0000 | 
| commit | b5001909b09a2362826224ac4fc71f4ddbb141f6 (patch) | |
| tree | b8f93047d556fa449f612a08b727d2c3282cf223 /llvm | |
| parent | 06eb672f2418a89c54edf8af3770e3e4ec40dc90 (diff) | |
| download | bcm5719-llvm-b5001909b09a2362826224ac4fc71f4ddbb141f6.tar.gz bcm5719-llvm-b5001909b09a2362826224ac4fc71f4ddbb141f6.zip  | |
Delete the isOnlyStride argument, which is unused.
llvm-svn: 66446
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 13 | 
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index a059580172f..c89a4968c0b 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -239,7 +239,7 @@ private:                                    SCEVExpander &PreheaderRewriter);      void StrengthReduceStridedIVUsers(const SCEVHandle &Stride,                                        IVUsersOfOneStride &Uses, -                                      Loop *L, bool isOnlyStride); +                                      Loop *L);      void DeleteTriviallyDeadInstructions();    };  } @@ -1786,11 +1786,10 @@ static bool IsImmFoldedIntoAddrMode(GlobalValue *GV, int64_t Offset,  /// StrengthReduceStridedIVUsers - Strength reduce all of the users of a single  /// stride of IV.  All of the users may have different starting values, and this -/// may not be the only stride (we know it is if isOnlyStride is true). +/// may not be the only stride.  void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride,                                                        IVUsersOfOneStride &Uses, -                                                      Loop *L, -                                                      bool isOnlyStride) { +                                                      Loop *L) {    // If all the users are moved to another stride, then there is nothing to do.    if (Uses.Users.empty())      return; @@ -2627,10 +2626,6 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {      // Need to be careful that IV's are all the same type.  Only works for      // intptr_t indvars. -    // If we only have one stride, we can more aggressively eliminate some -    // things. -    bool HasOneStride = IVUsesByStride.size() == 1; -      // IVsByStride keeps IVs for one particular loop.      assert(IVsByStride.empty() && "Stale entries in IVsByStride?"); @@ -2646,7 +2641,7 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {        std::map<SCEVHandle, IVUsersOfOneStride>::iterator SI =           IVUsesByStride.find(StrideOrder[Stride]);        assert(SI != IVUsesByStride.end() && "Stride doesn't exist!"); -      StrengthReduceStridedIVUsers(SI->first, SI->second, L, HasOneStride); +      StrengthReduceStridedIVUsers(SI->first, SI->second, L);      }    }  | 

