Index: docs/LangRef.html =================================================================== --- docs/LangRef.html +++ docs/LangRef.html @@ -330,6 +330,8 @@
+ declare void @llvm.invariant(i1 %cond) ++ +
The 'llvm.invariant' intrinsic allows the optimizer to assume + that the provided condition is true. This information can then be used + in simplifying other parts of the code.
+ +The condition which the optimizer may assume is always true.
+ +The intrinsic allows the optimizer to assume that the provided condition is + always true. No code is generated for this intrinsic, and instructions that + contribute only to the provided condition are not used for code generation.
+