diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-20 21:05:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-20 21:05:23 +0000 |
commit | f0baa6e9cba77f54cee438e9a10e41c37789403e (patch) | |
tree | 798d5b1ebbfe05d7d5726336a4c5cf0498483ae6 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 79fb3b434f83bcb7c382dbcfea485884a39b9544 (diff) |
It's not necessary to check if Base is null here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e3f7fbd522..b03dcf4e66 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1548,8 +1548,7 @@ bool LoopStrengthReduce::ShouldUseFullStrengthReductionMode( // a register for their base, full strength-reduction will increase // register pressure. for (unsigned i = 0, e = UsersToProcess.size(); i != e; ++i) - if (!UsersToProcess[i].Base || - UsersToProcess[i].Base->isZero()) + if (UsersToProcess[i].Base->isZero()) return false; // Otherwise, go for it. |