Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mu-impl-fast
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab will continue to be upgraded on 7 Feb 2023 from 2.00 pm (AEDT) to 3.00 pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

  • mumu
  • mu-impl-fast
  • Issues
  • #46
Closed
Open
Issue created Jun 26, 2017 by Yi Lin@u4776528Owner

Fix frame slot offset after register allocation

Zebu is doing the following things regarding frame size in this order:

  1. emit code to save callee saved registers and reserve frame slots for them
  2. do register allocation, spill registers and reserve frame slots for them
  3. rewrite code, and redo register allocation until finished
  4. figure out which callee saved registers are not used, and remove the saving/restoring code for them
  5. patch the frame size

We do not know the actual frame size until 3 is done. However, in 2, we need to make assumptions and emit code about frame slots. Currently though we patch the frame size in the end, we do not deduct the space initially reserved for unused callee saved register. We should offset all the frame slots, and patch spilled location in the code.

Assignee
Assign to
Time tracking