[llvm-commits] [llvm] r80334 - /llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Chris Lattner sabre at nondot.org
Thu Aug 27 21:48:55 PDT 2009


Author: lattner
Date: Thu Aug 27 23:48:54 2009
New Revision: 80334

URL: http://llvm.org/viewvc/llvm-project?rev=80334&view=rev
Log:
finish a half formed thought :)

Modified:
    llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Modified: llvm/trunk/lib/Transforms/IPO/Inliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Inliner.cpp?rev=80334&r1=80333&r2=80334&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Inliner.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Inliner.cpp Thu Aug 27 23:48:54 2009
@@ -60,7 +60,10 @@
 /// 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) {





More information about the llvm-commits mailing list