[llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 08:29:33 PDT 2024


================
@@ -12472,9 +12472,8 @@ instruction's return value on the same edge).
 The optional ``fast-math-flags`` marker indicates that the phi has one
 or more :ref:`fast-math-flags <fastmath>`. These are optimization hints
 to enable otherwise unsafe floating-point optimizations. Fast-math-flags
-are only valid for phis that return a floating-point scalar or vector
-type, or an array (nested to any depth) of floating-point scalar or vector
-types.
+are only valid for phis that return a floating-point scalar or vector type,
+possibly within an array (nested to any depth), or a homogeneous struct literal.
----------------
nikic wrote:

Should be "homogeneous literal struct". "literal" here means "unnamed".

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


More information about the llvm-commits mailing list