diff options
-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. |