[llvm-commits] Fwd: [llvm] r69254 - in /llvm/trunk/lib/CodeGen/SelectionDAG: SelectionDAGBuild.cpp SelectionDAGISel.cpp

Devang Patel dpatel at apple.com
Wed Apr 15 19:45:32 PDT 2009


This patch also disables SelectionDAGLowering for functions with  
available_external linkage.
-
Devang

Begin forwarded message:

> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=69254&r1=69253&r2=69254&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp  
> (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Apr  
> 15 21:33:41 2009
> @@ -296,6 +296,12 @@
>   assert((!EnableFastISelAbort || EnableFastISel) &&
>          "-fast-isel-abort requires -fast-isel");
>
> +  // Do not codegen any 'available_externally' functions at all,  
> they have
> +  // definitions outside the translation unit.
> +  if (Fn.hasAvailableExternallyLinkage())
> +    return false;
> +
> +
>   // Get alias analysis for load/store combining.
>   AA = &getAnalysis<AliasAnalysis>();
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090415/29f5402d/attachment.html>


More information about the llvm-commits mailing list