[llvm-commits] [llvm] r66469 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Dan Gohman
gohman at apple.com
Mon Mar 9 14:19:58 PDT 2009
Author: djg
Date: Mon Mar 9 16:19:58 2009
New Revision: 66469
URL: http://llvm.org/viewvc/llvm-project?rev=66469&view=rev
Log:
Use ReplacedTy instead of recomputing the same value.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=66469&r1=66468&r2=66469&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon Mar 9 16:19:58 2009
@@ -1903,7 +1903,7 @@
// 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())
More information about the llvm-commits
mailing list