Skip to content

[RyuJIT][arm64] Recognize madd/msub #49283

Closed
@EgorBo

Description

@EgorBo

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.

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issue

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions