From: Dan Gohman Date: Mon, 9 Mar 2009 21:19:58 +0000 (+0000) Subject: Use ReplacedTy instead of recomputing the same value. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bb5b49cb8d1415685d194a7302ec6318f907160b;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index f3312151c48..acd253185ff 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(RewriteFactor) && cast(RewriteFactor)->isZero())