[llvm] [NVPTX] Lower bfloat16 add/mul/sub as fma on SM80 (PR #121065)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 15:59:55 PST 2025


Artem-B wrote:

Could we just declare bfloat16 add/mul/sub legal when FMA is available, and just lower them as FMA via pattern-matching, without messing with the legalizer and combiner? I'm not quite sure why we want to convert those mul/add to FMA in the DAG itself.


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


More information about the llvm-commits mailing list