summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2019-04-22 17:38:29 +0000
committerJustin Bogner <mail@justinbogner.com>2019-04-22 17:38:29 +0000
commite90d5c8db069f4a456963b45c90407500eacf77f (patch)
treed743ac456e8b22b556e1d41516d714c802ea018f /llvm/lib/Transforms/IPO
parent5de5d74c8dcc8ec1485c9c558a1a1639735d4648 (diff)
downloadbcm5719-llvm-e90d5c8db069f4a456963b45c90407500eacf77f.tar.gz
bcm5719-llvm-e90d5c8db069f4a456963b45c90407500eacf77f.zip
[IPSCCP] Add missing `AssumptionCacheTracker` dependency
Back in August, r340525 introduced a dependency on the assumption cache tracker in the ipsccp pass, but that commit missed a call to INITIALIZE_PASS_DEPENDENCY, which leaves the assumption cache improperly registered if SCCP is the only thing that pulls it in. llvm-svn: 358903
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/SCCP.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/SCCP.cpp b/llvm/lib/Transforms/IPO/SCCP.cpp
index d2c34abfc13..7be3608bd2e 100644
--- a/llvm/lib/Transforms/IPO/SCCP.cpp
+++ b/llvm/lib/Transforms/IPO/SCCP.cpp
@@ -79,6 +79,7 @@ char IPSCCPLegacyPass::ID = 0;
INITIALIZE_PASS_BEGIN(IPSCCPLegacyPass, "ipsccp",
"Interprocedural Sparse Conditional Constant Propagation",
false, false)
+INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
INITIALIZE_PASS_END(IPSCCPLegacyPass, "ipsccp",
OpenPOWER on IntegriCloud