[clang] [llvm] [IR] Allow fast math flags on fptrunc and fpext (PR #115894)
Thorsten Schütt via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 10:32:33 PST 2024
================
@@ -3730,10 +3730,10 @@ Fast-Math Flags
LLVM IR floating-point operations (:ref:`fneg <i_fneg>`, :ref:`fadd <i_fadd>`,
:ref:`fsub <i_fsub>`, :ref:`fmul <i_fmul>`, :ref:`fdiv <i_fdiv>`,
-:ref:`frem <i_frem>`, :ref:`fcmp <i_fcmp>`), and :ref:`phi <i_phi>`,
-:ref:`select <i_select>`, or :ref:`call <i_call>` instructions that return
-floating-point types may use the following flags to enable otherwise unsafe
-floating-point transformations.
+:ref:`frem <i_frem>`, :ref:`fcmp <i_fcmp>`, :ref:`fptrunc <i_fptrunc>`,
+:ref:`fpext <i_fpext>`), and :ref:`phi <i_phi>`, :ref:`select <i_select>`, or
+:ref:`call <i_call>` instructions that return floating-point types may use the
----------------
tschuett wrote:
The syntax of `fptrunc` and `fpext` forbids fast math flags. You may want to update the two sections.
https://github.com/llvm/llvm-project/pull/115894
More information about the cfe-commits
mailing list