[PATCH] D20116: Add nosideeffects function attribute
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 13:02:30 PDT 2016
joker.eph added inline comments.
================
Comment at: docs/LangRef.rst:1386
@@ -1384,1 +1385,3 @@
+ This function attribute indicates that the function has no side effects
+ and can be safely speculated.
``nounwind``
----------------
IIRC, annoyingly the backend considers that an instructions can access memory and still don't have side-effect. It'd be nice to align (but I think the backend is "wrong" on this one).
http://reviews.llvm.org/D20116
More information about the llvm-commits
mailing list