Skip to content

Commit

Permalink
[DFAJumpThreading] Mark DT as preserved in LegacyPM
Browse files Browse the repository at this point in the history
It is marked as preserved in NewPM, but not LegacyPM.
  • Loading branch information
nikic committed Aug 2, 2021
1 parent ea97066 commit e97524c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
Expand Up @@ -174,6 +174,7 @@ class DFAJumpThreadingLegacyPass : public FunctionPass {
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<AssumptionCacheTracker>();
AU.addRequired<DominatorTreeWrapperPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addRequired<TargetTransformInfoWrapperPass>();
AU.addRequired<OptimizationRemarkEmitterWrapperPass>();
}
Expand Down

0 comments on commit e97524c

Please sign in to comment.