[PATCH] D35840: All libcalls should be considered to be GC-leaf functions.

Daniel Neilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 07:39:56 PDT 2017


dneilson created this revision.

It is possible for some passes to materialize a call to a libcall (ex: ldexp, exp2, etc),
but these passes will not mark the call as a gc-leaf-function. All libcalls are
actually gc-leaf-functions, so we change llvm::callsGCLeafFunction() to tell us that
available libcalls are equivalent to gc-leaf-function calls.


https://reviews.llvm.org/D35840

Files:
  include/llvm/Transforms/Utils/Local.h
  lib/Transforms/Scalar/PlaceSafepoints.cpp
  lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  lib/Transforms/Utils/Local.cpp
  test/Transforms/PlaceSafepoints/libcall.ll
  test/Transforms/RewriteStatepointsForGC/libcall.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35840.108081.patch
Type: text/x-patch
Size: 10222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170725/58b4ccc1/attachment.bin>


More information about the llvm-commits mailing list