Use ReplacedTy instead of recomputing the same value.

llvm-svn: 66469
This commit is contained in:
Dan Gohman 2009-03-09 21:19:58 +00:00
parent 1897de1c38
commit 5a4e31666d
1 changed files with 1 additions and 1 deletions

View File

@ -1903,7 +1903,7 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride,
// the immediate field, if any.
RewriteFactor = CheckForIVReuse(HaveCommonExprs, AllUsesAreAddresses,
AllUsesAreOutsideLoop,
Stride, ReuseIV, CommonExprs->getType(),
Stride, ReuseIV, ReplacedTy,
UsersToProcess);
if (isa<SCEVConstant>(RewriteFactor) &&
cast<SCEVConstant>(RewriteFactor)->isZero())