[llvm] [RISCV][ISel] Combine vector fadd/fsub/fmul with fp extend. (PR #81248)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 17 23:18:59 PST 2024


================
@@ -13273,22 +13281,34 @@ struct NodeExtensionHelper {
     return OrigOperand.getOpcode() == RISCVISD::VMV_V_X_VL;
   }
 
+  /// Get the extended opcode.
+  unsigned getExtOpc(ExtKind SupportsExt) const {
+    switch (SupportsExt) {
----------------
sun-jacobi wrote:

It might be more readable with a enum? We could know exactly what extensions are currently supported.

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


More information about the llvm-commits mailing list