diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-07-03 03:35:06 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-07-03 03:35:06 +0000 |
commit | fa6db90164459924a31eb590de0279ba4bf43af8 (patch) | |
tree | 3e954aea2df3b5dfad01ec8d1ea855daecfc3941 /llvm/lib/Transforms/Scalar/JumpThreading.cpp | |
parent | 997cbea05b0cfa21b27c19694bf62da7c9509546 (diff) | |
download | bcm5719-llvm-fa6db90164459924a31eb590de0279ba4bf43af8.tar.gz bcm5719-llvm-fa6db90164459924a31eb590de0279ba4bf43af8.zip |
PR28400: Partly undo r274440 to bring test-suite back to life with the new PM
PR28400 seems to be not an isolated issue, but a general problem related
to caching analyses. We will need to discuss on llvm-dev.
A test case is in the PR.
llvm-svn: 274457
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/JumpThreading.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp index bb3352c91a4..8e6020bb22e 100644 --- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp +++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp @@ -151,7 +151,8 @@ PreservedAnalyses JumpThreadingPass::run(Function &F, if (!Changed) return PreservedAnalyses::all(); PreservedAnalyses PA; - PA.preserve<LazyValueAnalysis>(); + // FIXME: Not preserving LVI! We need it to be invalidated so that we + // don't run into issues like PR28400. Is there a better solution? PA.preserve<GlobalsAA>(); return PA; } |