[PATCH] Clarify wording in the LangRef around !invariant.load

hfinkel at anl.gov hfinkel at anl.gov
Thu Nov 20 19:17:55 PST 2014


> which can be assumed unchanged by any store.

First, "unchanged by any store" seems redundant (and over-specific); "unchanged" would be fine.

However, this leaves open the question of when and for how long? Does it imply invariance only during the execution of the function? or must it have the same value during every invocation? At what point does the invariance start?

================
Comment at: docs/LangRef.rst:5216
@@ -5215,1 +5215,3 @@
+the location is known dereferenceable along a particular execution
+path that it's value is henceforth unchanging.  
 
----------------
it's -> its

http://reviews.llvm.org/D6346






More information about the llvm-commits mailing list