[llvm] [WebAssembly] Lower fmuladd to fma (PR #161355)
Jasmine Tang via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 1 10:26:08 PDT 2025
https://github.com/badumbatish approved this pull request.
> The pattern matching confused me yesterday and, after looking with fresh eyes, I'm pretty sure that's because the operands were ordered incorrectly in the original patterns. AFAICT the wasm instructions and ISD nodes both use the same operand order for FMA. @badumbatish Could you please take a look and confirm?
>
> edit: and changing this fixed a NaN error I was encountering with a workload.
can confirmed it was an ordering mistake. Both wasm fmadd and fma should follow IREE754.
https://github.com/llvm/llvm-project/pull/161355
More information about the llvm-commits
mailing list