[PATCH] D151943: [InstCombine] Propagate some func/arg/ret attributes from caller to callsite

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 22:04:44 PDT 2023


goldstein.w.n added a comment.

@nikic fixed the `nofree` issue.

Also made it so that `readnone`, `readonly`, and `writeonly` are only passed on to the callsite iff all the arguments to the callsite have underlying objects of either function argument or global.

All is green on llvm-test-suite (although there were some failures before).
Since I seem to have a pattern of under thinking these attribute level changes will make sure to test them all on llvm-test-suite before submitting more changes / between patch iterations.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151943



More information about the llvm-commits mailing list