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

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 09:18:44 PDT 2024


================
@@ -1122,6 +1122,26 @@ define void @fastMathFlagsForArrayCalls([2 x float] %f, [2 x double] %d1, [2 x <
   ret void
 }
 
+declare { float, float } @fmf_struct_f32()
+declare { double, double } @fmf_struct_f64()
+declare { <4 x double>, <4 x double> } @fmf_struct_v4f64()
----------------
MacDue wrote:

Nested structs and empty structs are not supported (so can't have the attributes in the IR without an error), so I'll instead add those tests to the `InstructionsTest.cpp` unittest

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


More information about the llvm-commits mailing list