efriedma added a comment.

I'm not trying to argue what the `pure`/`const` attribute in C/C++ is supposed 
to mean.  I agree with your interpretation of the gcc 
documentation/implementation.  I'm saying that there's a mismatch between the 
gcc `pure`/`const` and the LLVM IR `memory(read)`/`memory(none)`, and therefore 
you can't unconditionally lower `const` to `memory(none)`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138958

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to