diff options
| author | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
| commit | 303595942502f17c087fa28874c2b89117148c45 (patch) | |
| tree | 75e904f611c8a27f2ed75866eb2cabe4e9468141 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | 9f65c39f806186e1bbe1c9e4b670d198c69a81c1 (diff) | |
Use empty() instead of comparing size() with zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 7ce4711cbe..5d80b75a27 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1214,7 +1214,7 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride, Loop *L, bool isOnlyStride) { // If all the users are moved to another stride, then there is nothing to do. - if (Uses.Users.size() == 0) + if (Uses.Users.empty()) return; // Keep track if every use in UsersToProcess is an address. If they all are, |
