[llvm-commits] [llvm] r47889 - /llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp

Devang Patel dpatel at apple.com
Tue Mar 4 09:46:26 PST 2008


Author: dpatel
Date: Tue Mar  4 11:46:26 2008
New Revision: 47889

URL: http://llvm.org/viewvc/llvm-project?rev=47889&view=rev
Log:
Process externally visible functions also. Later on code generator will do the right thing.

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

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

==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp Tue Mar  4 11:46:26 2008
@@ -73,8 +73,7 @@
 bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
   Function *F = CGN->getFunction();
 
-  // Make sure that it is local to this module.
-  if (!F || !F->hasInternalLinkage())
+  if (!F)
     return false;
 
   // Make sure that function returns struct.





More information about the llvm-commits mailing list