[llvm] [RISCV][llvm] Support widening fadd, fsub and fmul codegen for zvfbfa (PR #192414)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 00:01:09 PDT 2026
================
@@ -18570,13 +18572,9 @@ NodeExtensionHelper::getSupportedFoldings(const SDNode *Root,
case RISCVISD::VFNMADD_VL:
case RISCVISD::VFNMSUB_VL:
Strategies.push_back(canFoldToVWWithSameExtension);
- if (Subtarget.hasVInstructionsBF16() &&
- Root->getOpcode() != RISCVISD::FMUL_VL)
- // TODO: Once other widen operations are supported we can merge
----------------
4vtomat wrote:
I think it was original intention back then, but I found it's better not merging back because we there's 1 exception(zvfbfwma) that will also enable `SupportsBF16Ext` that needs additional logic to handle lol
https://github.com/llvm/llvm-project/pull/192414
More information about the llvm-commits
mailing list