[PATCH] D103992: [InstCombine / BuildLibCalls] Add parameter attributes from the prototype.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 18:45:09 PDT 2021


efriedma added a comment.

Taking all the attributes from a call to one function and applying them to a call to a different function doesn't make sense to me.  Different functions have different attributes.

There might be a few specific attributes that make sense to transfer, but you'd want to explicitly handle the specific attributes that are relevant.  (For example, pointer alignment.)


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

https://reviews.llvm.org/D103992



More information about the llvm-commits mailing list