summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-01 18:27:22 +0000
committerOwen Anderson <resistor@mac.com>2010-09-01 18:27:22 +0000
commit73f988cafa3f640bb1d2f694afb878ded5fc8eab (patch)
tree8102fd9649e4fd7d32fcea7a5c28896f63d6ce55 /llvm/lib/Transforms
parent3ce9c4a65fbb0ed6456566e3b65deb4481073de7 (diff)
downloadbcm5719-llvm-73f988cafa3f640bb1d2f694afb878ded5fc8eab.tar.gz
bcm5719-llvm-73f988cafa3f640bb1d2f694afb878ded5fc8eab.zip
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
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index abf98866aec..6fd8ed10eff 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -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);
OpenPOWER on IntegriCloud