diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-05-06 16:30:39 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-05-18 13:49:03 -0700 |
commit | 6b9524a05bab21c6b0ba4fe025864cb613605b99 (patch) | |
tree | 65dac1ad17cdbf8acb5cd11d30eb6776d56a0fce /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | fd5e79ff12204b5850cca364fc669fa10eb9a1a5 (diff) | |
download | llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.zip llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.tar.gz llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.tar.bz2 |
[NewPM] Don't mark AA analyses as preserved
Currently all AA analyses marked as preserved are stateless, not taking
into account their dependent analyses. So there's no need to mark them
as preserved, they won't be invalidated unless their analyses are.
SCEVAAResults was the one exception to this, it was treated like a
typical analysis result. Make it like the others and don't invalidate
unless SCEV is invalidated.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D102032
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 927c341..3420256 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -27,6 +27,7 @@ #include "llvm/IR/Dominators.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/MDBuilder.h" +#include "llvm/IR/PassManager.h" #include "llvm/InitializePasses.h" #include "llvm/Support/BranchProbability.h" #include "llvm/Support/CommandLine.h" @@ -2095,9 +2096,7 @@ PreservedAnalyses ControlHeightReductionPass::run( bool Changed = CHR(F, BFI, DT, PSI, RI, ORE).run(); if (!Changed) return PreservedAnalyses::all(); - auto PA = PreservedAnalyses(); - PA.preserve<GlobalsAA>(); - return PA; + return PreservedAnalyses::none(); } } // namespace llvm |