[PATCH] D74935: [LangRef][AliasAnalysis] Clarify `noalias` affects only modified objects

Juneyoung Lee via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 23 23:57:06 PST 2020


aqjune added a comment.

I agree readnone functions can read constant memory; at least LangRef doesn't restrict readnone functions from accessing memory (unless it changes a state visible to caller). I see that readnone is also attached to a function that loads from/stores to alloca: https://godbolt.org/z/RMAbWa


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74935





More information about the cfe-commits mailing list