Skip to content

Optimization that elides multiple 32-bit zero extends #467

@OFFTKP

Description

@OFFTKP

eg.

add eax, ebx
add eax, edx
add eax, ebx

Don't zero extend eax thrice, but also don't zero extend ebx twice

At the start of the block, the upper 32 bits of the reg are considered dirty, but as they are getGPR or setGPR as dword they are zeroed. If a reg is set as 64-bit it is dirty again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions