[llvm] [GISel] Extend ConstantFoldFPBinOp with fminimumnum, fmaximumnum (PR #190561)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 07:17:41 PDT 2026


================
@@ -1365,7 +1365,10 @@ def constant_fold_binop : GICombineRule<
 
 def constant_fold_fp_binop : GICombineRule<
   (defs root:$d, constantfp_matchinfo:$matchinfo),
-  (match (wip_match_opcode G_FADD, G_FSUB, G_FMUL, G_FDIV):$d,
+  (match (wip_match_opcode G_FADD, G_FSUB, G_FMUL, G_FDIV, G_FREM,
----------------
arsenm wrote:

I guess the constant fold cases haven't caught up, but see unary_undef_to_undef

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


More information about the llvm-commits mailing list