diff options
author | Owen Anderson <resistor@mac.com> | 2010-09-01 18:27:22 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-09-01 18:27:22 +0000 |
commit | 9bfa6fec068abb8bea4da03e5c9c39765f963ef2 (patch) | |
tree | ddbc805f6577076cefcbe09982d8814e03f2d473 /lib/Transforms/Scalar | |
parent | 4e68c7cca44d33771d376f1668d687ce9d8f11d3 (diff) | |
download | external_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.cpp | 4 |
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); |