OSDN Git Service

[IPSCCP] Add missing `AssumptionCacheTracker` dependency
authorJustin Bogner <mail@justinbogner.com>
Mon, 22 Apr 2019 17:38:29 +0000 (17:38 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 22 Apr 2019 17:38:29 +0000 (17:38 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SCCP.cpp

index d2c34ab..7be3608 100644 (file)
@@ -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",