summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2018-02-08 11:45:36 +0000
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2018-02-08 11:45:36 +0000
commit836eac3e8d66d3f8975b8575c5fdddabe9e8f2ed (patch)
tree215d2019a81d194399bc672e84a1836ca07efb8e
parent2b20304def44a0e3c4ab4ae90f50d4c4449ce03d (diff)
downloadbcm5719-llvm-836eac3e8d66d3f8975b8575c5fdddabe9e8f2ed.tar.gz
bcm5719-llvm-836eac3e8d66d3f8975b8575c5fdddabe9e8f2ed.zip
Add missed PostDominatorTree analysis dependency to GVN hoist pass.
Summary: GVN hoist pass is using PostDominatorTree analysis, therefore the analysis should be listed in the pass initialization as a dependency. Reviewed By: sebpop Differential Revision: https://reviews.llvm.org/D43007 Author: ashlykov <arkady.shlykov@intel.com> llvm-svn: 324597
-rw-r--r--llvm/lib/Transforms/Scalar/GVNHoist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNHoist.cpp b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
index 214855d5630..ce0474d9bf1 100644
--- a/llvm/lib/Transforms/Scalar/GVNHoist.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -1200,6 +1200,7 @@ INITIALIZE_PASS_BEGIN(GVNHoistLegacyPass, "gvn-hoist",
INITIALIZE_PASS_DEPENDENCY(MemoryDependenceWrapperPass)
INITIALIZE_PASS_DEPENDENCY(MemorySSAWrapperPass)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
+INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass)
INITIALIZE_PASS_END(GVNHoistLegacyPass, "gvn-hoist",
"Early GVN Hoisting of Expressions", false, false)
OpenPOWER on IntegriCloud