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 | 5a4e31666d600671a978082b61c8d5d9b50ab025 (patch) | |
| tree | f03fe6e38106d130e07a5d8c6e510484b81dd63a /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | 1897de1c3804a85cbd43a0b0c00e46186e01876e (diff) | |
| download | bcm5719-llvm-5a4e31666d600671a978082b61c8d5d9b50ab025.tar.gz bcm5719-llvm-5a4e31666d600671a978082b61c8d5d9b50ab025.zip | |
Use ReplacedTy instead of recomputing the same value.
llvm-svn: 66469
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index f3312151c48..acd253185ff 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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()) |

