Skip to content

Commit 55c2f27

Browse files
authored
[DOC][GlobalIsel] Add description for G_FREEZE (#156707)
Description based on https://llvm.org/docs/LangRef.html#id333
1 parent d289ff7 commit 55c2f27

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,15 @@ An alignment value of `0` or `1` means no specific alignment.
11501150
11511151
%8:_(p0) = G_DYN_STACKALLOC %7(s64), 32
11521152
1153+
G_FREEZE
1154+
^^^^^^^^
1155+
1156+
G_FREEZE is used to stop propagation of undef and poison values.
1157+
1158+
.. code-block:: none
1159+
1160+
%1:_(s32) = G_FREEZE %0(s32)
1161+
11531162
Optimization Hints
11541163
------------------
11551164

0 commit comments

Comments
 (0)