[llvm] [GlobalISel] Propagate fast-math flags when fusing fmul+fadd into fma (PR #215150)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 08:04:27 PDT 2026


================
@@ -6488,6 +6488,7 @@ bool CombinerHelper::matchCombineFAddFMulToFMadOrFMA(
   if (!canCombineFMadOrFMA(MI, AllowFusionGlobally, HasFMAD, Aggressive))
     return false;
 
+  unsigned Flags = MI.getFlags();
----------------
LU-JOHN wrote:

> Indeed. Thanks!

Are there any tests where the flags between FMUL and FADD are different?  I didn't see any.  

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


More information about the llvm-commits mailing list