forked from OSchip/llvm-project
Use ReplacedTy instead of recomputing the same value.
llvm-svn: 66469
This commit is contained in:
parent
1897de1c38
commit
5a4e31666d
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue