diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-09 21:19:58 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-09 21:19:58 +0000 |
commit | bb5b49cb8d1415685d194a7302ec6318f907160b (patch) | |
tree | b7064682eb0b14ff00da9e0b0e037c64783fc6ef /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 0daeed270bb0318b8a1337026fe92646a40ee3d9 (diff) |
Use ReplacedTy instead of recomputing the same value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index f3312151c4..acd253185f 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -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()) |