diff options
| author | Tim Creech <timothy.m.creech@intel.com> | 2025-10-15 07:25:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 10:25:52 -0400 |
| commit | aa435772780ec17fda440f58d00d3d8703d7bfda (patch) | |
| tree | e1b4c66157cf3d63c67c285f1acc0f4731281b3a | |
| parent | be93399e619848c96b101172e68c29336fa589fe (diff) | |
| download | llvm-aa435772780ec17fda440f58d00d3d8703d7bfda.zip llvm-aa435772780ec17fda440f58d00d3d8703d7bfda.tar.gz llvm-aa435772780ec17fda440f58d00d3d8703d7bfda.tar.bz2 | |
[LangRef] Clarify that selects can have !unpredictable (#162753)
Originally `!unpredictable` could only appear on branches and switches,
but now it can also appear on selects. This change updates the LangRef
accordingly.
| -rw-r--r-- | llvm/docs/LangRef.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 4884e2d..0c54f57 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -7517,12 +7517,12 @@ sections that the user does not want removed after linking. '``unpredictable``' Metadata ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -``unpredictable`` metadata may be attached to any branch or switch -instruction. It can be used to express the unpredictability of control -flow. Similar to the ``llvm.expect`` intrinsic, it may be used to alter -optimizations related to compare and branch instructions. The metadata -is treated as a boolean value; if it exists, it signals that the branch -or switch that it is attached to is completely unpredictable. +``unpredictable`` metadata may be attached to any branch, select, or switch +instruction. It can be used to express the unpredictability of control flow. +Similar to the ``llvm.expect`` intrinsic, it may be used to alter optimizations +related to compare and branch instructions. The metadata is treated as a +boolean value; if it exists, it signals that the branch, select, or switch that +it is attached to is completely unpredictable. .. _md_dereferenceable: |
