diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e3f7fbd522f..b03dcf4e66b 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.