summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit071cee0c815e14aa868521a3f568f62bb2eefb72 (patch)
tree248e8faaa8f802a7b8889b99b92745b9610d64dd /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
parent6bc4f49f898986b8d8fae4e3b5c65cb9d715b4da (diff)
downloadbcm5719-llvm-071cee0c815e14aa868521a3f568f62bb2eefb72.tar.gz
bcm5719-llvm-071cee0c815e14aa868521a3f568f62bb2eefb72.zip
CallGraphSCC passes implicity require CallGraph analysis.
llvm-svn: 116443
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index e1d8833e499..f14c62b136e 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud