[llvm] 8dcd471 - [LangRef] Correct description of predicate.enable MD (#191496)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 04:00:41 PDT 2026
Author: Hassnaa Hamdi
Date: 2026-04-13T12:00:36+01:00
New Revision: 8dcd4713550e0e8ceffad49674499672a92069f1
URL: https://github.com/llvm/llvm-project/commit/8dcd4713550e0e8ceffad49674499672a92069f1
DIFF: https://github.com/llvm/llvm-project/commit/8dcd4713550e0e8ceffad49674499672a92069f1.diff
LOG: [LangRef] Correct description of predicate.enable MD (#191496)
The documentation incorrectly stated that this metadata enables/disables
vectorization, but it actually controls predication.
Also clarify that enabling predication implicitly enables vectorization.
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index b82d3e3ffbeb8..86325ef731381 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -7874,14 +7874,16 @@ This metadata selectively enables or disables creating predicated instructions
for the loop, which can enable folding of the scalar epilogue loop into the
main loop. The first operand is the string
``llvm.loop.vectorize.predicate.enable`` and the second operand is a bit. If
-the bit operand value is 1 vectorization is enabled. A value of 0 disables
-vectorization:
+the bit operand value is 1 predication is enabled. A value of 0 disables
+predication:
.. code-block:: llvm
!0 = !{!"llvm.loop.vectorize.predicate.enable", i1 0}
!1 = !{!"llvm.loop.vectorize.predicate.enable", i1 1}
+Additionally, enabling predication implicitly enables vectorization.
+
'``llvm.loop.vectorize.scalable.enable``' Metadata
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More information about the llvm-commits
mailing list