aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
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
commit9bfa6fec068abb8bea4da03e5c9c39765f963ef2 (patch)
treeddbc805f6577076cefcbe09982d8814e03f2d473 /lib/Transforms/Scalar
parent4e68c7cca44d33771d376f1668d687ce9d8f11d3 (diff)
downloadexternal_llvm-9bfa6fec068abb8bea4da03e5c9c39765f963ef2.zip
external_llvm-9bfa6fec068abb8bea4da03e5c9c39765f963ef2.tar.gz
external_llvm-9bfa6fec068abb8bea4da03e5c9c39765f963ef2.tar.bz2
JumpThreading keeps LazyValueInfo up to date, so we don't need to rerun it
if we schedule another LVI-using pass afterwards. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index abf9886..6fd8ed1 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/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);