[llvm] [RISCV][GISel] Add instruction selection for G_FADD/G_FSUB/G_FMUL/G_FDIV with F/D extensions. (PR #69808)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 10:31:37 PDT 2023


================
@@ -201,13 +202,11 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
 
   // FP Operations
 
-  if (ST.hasStdExtF()) {
-    auto &FPOpActions =
-        getActionDefinitionsBuilder({G_FADD, G_FSUB, G_FMUL, G_FDIV})
-            .legalFor({s32});
-    if (ST.hasStdExtD())
-      FPOpActions.legalFor({s64});
-  }
+  getActionDefinitionsBuilder({G_FADD, G_FSUB, G_FMUL, G_FDIV})
----------------
preames wrote:

Is this bit stylistic or functional?  

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


More information about the llvm-commits mailing list