Skip to content

An SSA form could possibly help reduce number of registers needed? #41

Description

@ExpHP

I just had a discussion with someone where, in the same discussion:

  • I mentioned that the format we're compiling into has an extremely limited set of registers
  • I said that truth doesn't have a CFG or SSA "because optimization is currently a non-goal (compared to round-trippability)"

Shortly after the discussion it dawned on me that SSA could quite possibly help with allocating registers to named local variables (allowing a register to be reused even if a variable it was bound to is still in scope). It'd probably be a lot of work (and a lot for me to learn 😅), but it in the end it could help make ANM scripts even nicer to write.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions