Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame lowering optimizations #1

Open
wants to merge 4 commits into
base: nanomips-llvm13-submission
Choose a base branch
from

Commits on Apr 12, 2023

  1. Enable save/restore generation when there is a gap between registers

    Enable save/restore generation when there is a gap between registers
    by inserting the missing ones at the moment when spill slots for
    callee-saved registers are assigned.
    Nikola Peric authored and Nikola Peric committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    b810f28 View commit details
    Browse the repository at this point in the history
  2. NanoMips: Two-step stack setup

    Adjust stack pointer in two steps if offset is larger than 4096.
    In the first step adjust stack pointer for the size necessary to
    spill CSR onto the stack. In the second step adjust stack pointer
    for the size necessary to spill local objects.
    Nikola Peric authored and Nikola Peric committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    9a56b55 View commit details
    Browse the repository at this point in the history
  3. NanoMips: Frame pointer setup

    If function uses FP, it will now point to address -4096 from the
    beginning of function's stack. After FP setup following offsets
    will be relative to SP if function has no var-sized objects. If it
    has var-sized objects offsets will be relative to FP.
    Also, stack realignment now happens with INS instruction.
    Nikola Peric authored and Nikola Peric committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    fc5fa13 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Merged same if instructions

    Nikola Peric authored and Nikola Peric committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b905942 View commit details
    Browse the repository at this point in the history