finish a half formed thought :)
authorChris Lattner <sabre@nondot.org>
Fri, 28 Aug 2009 04:48:54 +0000 (04:48 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Aug 2009 04:48:54 +0000 (04:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80334 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 1468155cda8d24f4edf1306dd7ea6d9609c364dc..084f3f084f966d4782dfc8507ee9ac0a2c3402ea 100644 (file)
@@ -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) {