[PATCH] D42224: Don't assume a null GV is local for ELF and MachO
Rafael Avila de Espindola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 18:55:48 PST 2018
espindola created this revision.
espindola added reviewers: rnk, tmsriram.
Herald added a subscriber: hiraditya.
This is already a simplification, and should help with avoiding a plt reference when calling an intrinsic with -fno-plt.
With this change we return false for null GVs, so caller only needs to check the new metadata to decide if it should use foo at plt or *foo at got.
https://reviews.llvm.org/D42224
Files:
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/X86/finite-libcalls.ll
llvm/test/CodeGen/X86/fp-intrinsics.ll
llvm/test/CodeGen/X86/half.ll
llvm/test/CodeGen/X86/memset-nonzero.ll
llvm/test/CodeGen/X86/negative-sin.ll
llvm/test/CodeGen/X86/vector-half-conversions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42224.130345.patch
Type: text/x-patch
Size: 8900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180118/4b83542b/attachment.bin>
More information about the llvm-commits
mailing list