summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-13 22:00:45 +0000
committerOwen Anderson <resistor@mac.com>2010-10-13 22:00:45 +0000
commitae0a7bc68303ce0c8721f0e981ae602601390e68 (patch)
treeb7ec99526b40d2ce5f50c59083e7e4991b8f6c28 /lib/Transforms/IPO/ArgumentPromotion.cpp
parent139788fe6f606075507f7cbb66cdbac57d8fabcd (diff)
downloadllvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.gz
llvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.bz2
llvm-ae0a7bc68303ce0c8721f0e981ae602601390e68.tar.xz
CallGraphSCC passes implicity require CallGraph analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--lib/Transforms/IPO/ArgumentPromotion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index e1d8833e49..f14c62b136 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -87,6 +87,7 @@ char ArgPromotion::ID = 0;
INITIALIZE_PASS_BEGIN(ArgPromotion, "argpromotion",
"Promote 'by reference' arguments to scalars", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
+INITIALIZE_AG_DEPENDENCY(CallGraph)
INITIALIZE_PASS_END(ArgPromotion, "argpromotion",
"Promote 'by reference' arguments to scalars", false, false)