[PATCH] D45180: libcalls must check for "RtLibUseGOT" metadata during simplification

Sriraman Tallam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 12:35:56 PDT 2018


tmsriram created this revision.
tmsriram added reviewers: rafael, rnk.

Simplification of libcalls like printf->puts must check for RtLibUseGOT metadata.

With -fno-plt, for example, calls to printf when getting converted to puts still use the PLT.  This patch checks for the metadata "RtLibUseGOT" and annotates the declaration with the right attributes.


https://reviews.llvm.org/D45180

Files:
  include/llvm/Transforms/Utils/BuildLibCalls.h
  lib/Transforms/IPO/InferFunctionAttrs.cpp
  lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  lib/Transforms/Utils/BuildLibCalls.cpp
  test/CodeGen/X86/no-plt-libcalls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45180.140664.patch
Type: text/x-patch
Size: 9404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180402/6252d161/attachment.bin>


More information about the llvm-commits mailing list