[PATCH] D103415: [BuildLibCalls] Properly set ABI attributes on arguments

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 2 14:04:09 PDT 2021


rnk added a comment.

I'd suggest something like:

  CI->setAttributes(CI->getCalledFunction()->getAttributes().removeAttributes(Ctx, llvm::AttributeList::FunctionIndex)));

That should take the callee's attribute list, throw away all function index attributes (things like SSE level, noreturn, noinline, alwaysinline, optnone), and apply the return and parameter attributes. It should also create fewer immortal, immutable, but temporary attribute lists.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103415/new/

https://reviews.llvm.org/D103415



More information about the llvm-commits mailing list