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 | addc50b4ee1e5e1a98bd780ab42e4aa4e005f1ee (patch) | |
| tree | 8561aa49e6d1a133d10350e660fcb33c15b58612 /llvm/lib/Transforms | |
| parent | 2e635f6102fb22e0b33720f932394d40af91faea (diff) | |
| download | bcm5719-llvm-addc50b4ee1e5e1a98bd780ab42e4aa4e005f1ee.tar.gz bcm5719-llvm-addc50b4ee1e5e1a98bd780ab42e4aa4e005f1ee.zip | |
It's not necessary to check if Base is null here.
llvm-svn: 65157
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e3f7fbd522f..b03dcf4e66b 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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. | 

