Skip to content

The requirement to keep micro-ops dense while optimizing is harmful. #111646

Closed

Description

@markshannon

The tier 2 executor creation requires optimization passes to compact the micro-ops, which is onerous and error-prone.

We should make it part of the job of creating the executor to compact the micro-ops.
We will want to modify the tier 2 instruction format, so we will need to do this anyway at some point.

Linked PRs

Activity

  1. self-assigned this
    on Nov 2, 2023
  2. mdboom commented on Nov 2, 2023

    @mdboom
    Contributor

    Can you elaborate on what you mean by "compact the microops"? Is this removing unnecessary microops and (perhaps) realloc'ing a smaller buffer and copying there?

  3. changed the title [-]The requirement to keep micro-ops dense while optimization is harmful.[/-] [+]The requirement to keep micro-ops dense while optimizing is harmful.[/+] on Nov 2, 2023
  4. markshannon commented on Nov 2, 2023

    @markshannon
    MemberAuthor

    Packing them together instead of leaving gaps.
    So

    Some uop
    NOP
    NOP
    Another uop
    JUMP to exit
    # Junk here 
    exit:
    # More uops here
    

    must be compacted to:

    Some uop
    Another uop
    JUMP to exit
    exit:
    # More uops here
    

    during optimization, rather than doing it once when creating the executor.

  5. mdboom commented on Nov 2, 2023

    @mdboom
    Contributor

    Thanks, that makes sense.

  6. added a commit that references this issue on Nov 6, 2023
  7. added a commit that references this issue on Nov 8, 2023
  8. added a commit that references this issue on Feb 11, 2024
  9. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions