[llvm] RISC-V: Select FCANONICALIZE (PR #112083)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 13 21:53:30 PDT 2024


================
@@ -398,6 +398,7 @@ foreach Ext = DExts in {
   defm : PatFprFpr_m<fmaximumnum, FMAX_D, Ext>;
   defm : PatFprFpr_m<riscv_fmin, FMIN_D, Ext>;
   defm : PatFprFpr_m<riscv_fmax, FMAX_D, Ext>;
+  def : Pat<(f64 (fcanonicalize FPR64:$rs1)), (FMIN_D $rs1, $rs1)>;
----------------
topperc wrote:

It's the same extension that makes double precision FP a legal type.

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


More information about the llvm-commits mailing list