[PATCH] D159152: [RISCV] Support fmaximum/fminimum for fp16 vector when only Zvfhmin enabled

Jim Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 22:29:01 PDT 2023


Jim marked an inline comment as done.
Jim added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:5503
   case ISD::FMINIMUM:
+    if (Op.getValueType() == MVT::nxv32f16 &&
+        (Subtarget.hasVInstructionsF16Minimal() &&
----------------
michaelmaitland wrote:
> nit: maybe it makes sense for this to go in `lowerFMAXIMUM_FMINIMUM`?
Others for promoting fp16 vector operation to float vector operation also put this checking here. 
I think we can have another PR to change all of them.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159152/new/

https://reviews.llvm.org/D159152



More information about the llvm-commits mailing list