[PATCH] D63067: [Attributor] NoAlias on return values.

Stefan Stipanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 09:28:17 PDT 2019


sstefan1 marked an inline comment as done.
sstefan1 added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:903
+    if (ReturnType->isPointerTy())
+      registerAA(*new AANoAliasReturned(F, InfoCache));
+  }
----------------
jdoerfert wrote:
> Add the `Whitelist` check please.
I added the check here, since all noalias attrs will have same id, and both returned and noalias returned are only one per fucntion.



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D63067





More information about the llvm-commits mailing list