mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Use ReplacedTy instead of recomputing the same value.
llvm-svn: 66469
This commit is contained in:
parent
108b5dd79c
commit
b65c69ed4b
@ -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
Block a user