aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-28 04:48:54 +0000
committerChris Lattner <sabre@nondot.org>2009-08-28 04:48:54 +0000
commitcc0a0299d96676e0a51e9b8f5bf617d8025f09a7 (patch)
tree148ef75ad6dd1f0f3aae949371d522f7d5339a2e
parent5a8969a7e23b81812efb567eda824f62e706c554 (diff)
finish a half formed thought :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80334 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/Inliner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp
index 1468155cda..084f3f084f 100644
--- a/lib/Transforms/IPO/Inliner.cpp
+++ b/lib/Transforms/IPO/Inliner.cpp
@@ -60,7 +60,10 @@ InlinedArrayAllocasTy;
/// do so and update the CallGraph for this operation.
///
/// This function also does some basic book-keeping to update the IR. The
-/// InlinedArrayAllocas map keeps track of any
+/// InlinedArrayAllocas map keeps track of any allocas that are already
+/// available from other functions inlined into the caller. If we are able to
+/// inline this call site we attempt to reuse already available allocas or add
+/// any new allocas to the set if not possible.
static bool InlineCallIfPossible(CallSite CS, CallGraph &CG,
const TargetData *TD,
InlinedArrayAllocasTy &InlinedArrayAllocas) {