JumpThreading keeps LazyValueInfo up to date, so we don't need to rerun it

if we schedule another LVI-using pass afterwards.

llvm-svn: 112722
This commit is contained in:
Owen Anderson 2010-09-01 18:27:22 +00:00
parent 3ce9c4a65f
commit 73f988cafa
1 changed files with 3 additions and 1 deletions

View File

@ -100,8 +100,10 @@ namespace {
bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
if (EnableLVI)
if (EnableLVI) {
AU.addRequired<LazyValueInfo>();
AU.addPreserved<LazyValueInfo>();
}
}
void FindLoopHeaders(Function &F);