It's not necessary to check if Base is null here.

llvm-svn: 65157
This commit is contained in:
Dan Gohman 2009-02-20 21:05:23 +00:00
parent c40c3e28f7
commit 33c5714553

View File

@ -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.