[PATCH] D66079: [SimplifyLibCalls] Add dereferecanble bytes from known callsites [WIP]

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 04:34:16 PDT 2019


xbolva00 marked an inline comment as done.
xbolva00 added a subscriber: spatel.
xbolva00 added inline comments.


================
Comment at: lib/Transforms/Utils/SimplifyLibCalls.cpp:193
+    unsigned ArgNo = Arg->getArgNo();
+    if (F->getParamDereferenceableBytes(ArgNo) < DerefBytes) {
+      F->removeParamAttr(ArgNo, Attribute::Dereferenceable);
----------------
Copy paste from @spatel 's patch: https://reviews.llvm.org/D64258

We should find proper place for this.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D66079





More information about the llvm-commits mailing list