[llvm-commits] [llvm] r112722 - /llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp
Owen Anderson
resistor at mac.com
Wed Sep 1 11:27:22 PDT 2010
Author: resistor
Date: Wed Sep 1 13:27:22 2010
New Revision: 112722
URL: http://llvm.org/viewvc/llvm-project?rev=112722&view=rev
Log:
JumpThreading keeps LazyValueInfo up to date, so we don't need to rerun it
if we schedule another LVI-using pass afterwards.
Modified:
llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp?rev=112722&r1=112721&r2=112722&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp Wed Sep 1 13:27:22 2010
@@ -100,8 +100,10 @@
bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- if (EnableLVI)
+ if (EnableLVI) {
AU.addRequired<LazyValueInfo>();
+ AU.addPreserved<LazyValueInfo>();
+ }
}
void FindLoopHeaders(Function &F);
More information about the llvm-commits
mailing list