[llvm-commits] [llvm] r125318 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Cameron Zwarich
zwarich at apple.com
Thu Feb 10 15:53:14 PST 2011
Author: zwarich
Date: Thu Feb 10 17:53:14 2011
New Revision: 125318
URL: http://llvm.org/viewvc/llvm-project?rev=125318&view=rev
Log:
If we can't avoid running loop-simplify twice for now, at least avoid running
iv-users twice.
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=125318&r1=125317&r2=125318&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Thu Feb 10 17:53:14 2011
@@ -3824,6 +3824,9 @@
AU.addPreserved<DominatorTree>();
AU.addRequired<ScalarEvolution>();
AU.addPreserved<ScalarEvolution>();
+ // Requiring LoopSimplify a second time here prevents IVUsers from running
+ // twice, since LoopSimplify was invalidated by running ScalarEvolution.
+ AU.addRequiredID(LoopSimplifyID);
AU.addRequired<IVUsers>();
AU.addPreserved<IVUsers>();
}
More information about the llvm-commits
mailing list