Currently for a * b + c; (integers) we emit:
mul w0, w0, w1
add w0, w0, w2
but C++ compilers emit: madd (or msub): https://godbolt.org/z/PMhq9G
Shouldn't be difficult to implement, a very simple implementation: EgorBo@8b7be3f (perhaps, it's better to introduce a new node for it since we might want to also recognize fmadd (for fp) in future in a sort of an "unsafe" math mode.
Currently for
a * b + c;(integers) we emit:but C++ compilers emit:
madd(ormsub): https://godbolt.org/z/PMhq9GShouldn't be difficult to implement, a very simple implementation: EgorBo@8b7be3f (perhaps, it's better to introduce a new node for it since we might want to also recognize fmadd (for fp) in future in a sort of an "unsafe" math mode.