[llvm-commits] [llvm] r164155 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Adhemerval Zanella azanella at linux.vnet.ibm.com
Tue Sep 18 12:30:42 PDT 2012


Hey Roman,

This is an update for 'ppc64-calls.ll' to test weak calls generation.


On 09/18/2012 03:27 PM, Roman Divacky wrote:
> Author: rdivacky
> Date: Tue Sep 18 13:27:49 2012
> New Revision: 164155
>
> URL: http://llvm.org/viewvc/llvm-project?rev=164155&view=rev
> Log:
> Fix the isLocalCall() by checking for linker weakness as well.
>
> Modified:
>     llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=164155&r1=164154&r2=164155&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Sep 18 13:27:49 2012
> @@ -2812,7 +2812,8 @@
>  bool isLocalCall(const SDValue &Callee)
>  {
>    if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
> -    return !G->getGlobal()->isDeclaration();
> +    return !G->getGlobal()->isDeclaration() &&
> +           !G->getGlobal()->isWeakForLinker();
>    return false;
>  }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>

-- 
Adhemerval Zanella Netto
  Software Engineer
  Linux Technology Center Brazil
  Toolchain / GLIBC on Power Architecture
  azanella at linux.vnet.ibm.com / azanella at br.ibm.com
  +55 61 8642-9890

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Fix-weak-PPC64-calls-with-TOC-restore-nop.patch
Type: text/x-patch
Size: 1338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120918/7b39ac37/attachment.bin>


More information about the llvm-commits mailing list