Skip to content

Improve preferencing and code generation for FMA #12984

Closed
@CarolEidt

Description

@CarolEidt

As pointed out in dotnet/coreclr#25387, there are improvements to be made in the handling of the FMA intrinsics:

  • Lowering should bias the containment such that the overwritten operand is a last use if possible.
  • The register allocator should preference the overwritten operand.
  • If all the operands are in registers, the code generator should choose the encoding based on whether the target register matches one of the input registers.

dotnet/coreclr#25387 includes a code snippet illustrating the issue.

category:cq
theme:vector-codegen
skill-level:expert
cost:large

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions