Skip to content

Avoid marking tmp as DoNotEnregister in tmp=GT_CALL() where call returns a enregisterable struct in two return registers #5112

Closed

Description

@sivarv

Right now codegenxarch.cpp is implemented with the assumption that the tmp to which struct returned in two registers is assigned does not live in a register. For example, when a call returns Vector3/4, we will have a tmp = call(), where tmp is of SIMD12/16 type and can be allocated a register. In this case it will lead to better code quality if codegen directly generates reg-to-reg moves instead of save to a temp on stack.

category:cq
theme:calling-convention
skill-level:intermediate
cost:small

Activity

  1. changed the title [-]Avoid marking tmp as DoNotEnregister in tmp=GT_CALL() where call returns a struct in two return registers[/-] [+]Avoid marking tmp as DoNotEnregister in tmp=GT_CALL() where call returns a enregisterable struct in two return registers[/+] on Feb 12, 2016
  2. CarolEidt commented on May 14, 2018

    @CarolEidt
    Contributor

    A repro, in particular one that reflects an actual real-world scenario, would be useful in prioritizing this.

  3. transferred this issue fromdotnet/coreclron Jan 30, 2020
  4. added this to the Future milestone on Jan 30, 2020
  5. CarolEidt commented on Oct 16, 2020

    @CarolEidt
    Contributor

    Fixed by #36862

  6. self-assigned this
    on Oct 16, 2020
  7. ghost locked as resolved and limited conversation to collaborators on Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrenhancementoptimizationos-linuxos-macostenet-performance

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions