[llvm] [RISCV][VLOPT] Add fsqrt instruction to isSupportInstr (PR #127462)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 02:51:05 PST 2025


================
@@ -1141,6 +1140,10 @@ static bool isSupportedInstr(const MachineInstr &MI) {
   case RISCV::VFNCVT_F_F_W:
   case RISCV::VFNCVT_ROD_F_F_W:
   case RISCV::VFNCVTBF16_F_F_W:
+  // Vector Floating-Point Square-Root Instruction
+  case RISCV::VFSQRT_V:
+  // Vector Floating-Point Reciprocal Square-Root Estimate Instruction
+  case RISCV::VFRSQRT7_V:
----------------
lukel97 wrote:

Can you move these to just after the "Vector Widening Floating-Point Fused Multiply-Add Instructions" so it stays in the order from the spec?

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


More information about the llvm-commits mailing list