[llvm] [LangRef] Clarify what "group" in invariant.group means. (PR #200552)

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 09:01:57 PDT 2026


================
@@ -8634,6 +8634,12 @@ value (but see the ``llvm.launder.invariant.group`` intrinsic which affects
 when two pointers are considered the same). Pointers returned by bitcast or
 getelementptr with only zero indices are considered the same.
 
+Note that although ``invariant.group`` takes a metadata value (e.g. ``!0`` in
+the code below), that value is meaningless and ignored. (It's present only
----------------
jlebar wrote:

> Note that the metadata value in invariant.group carries no semantic value. Because it must have no entries, all invariant.group annotations in a module reference the same uniqued empty node.

Works for me.  Done.

https://github.com/llvm/llvm-project/pull/200552


More information about the llvm-commits mailing list