Skip to content

SSA generation and register allocation update.#31

Merged
mengzhuo merged 10 commits intoplctlab:mainfrom
Milky2018:main
Jul 7, 2025
Merged

SSA generation and register allocation update.#31
mengzhuo merged 10 commits intoplctlab:mainfrom
Milky2018:main

Conversation

@Milky2018
Copy link

Main contributions:

  • optimized_option type for constructor expressions are now supported. See 848a471 and 666cd17.
  • Register allocation update: now loops with multiple back edges are supported. See 365893f.
  • Support loops that return a value as well as tail-recursive functions (which will be optimized to loops). See 09e191f. Examples are list01, list02, recursive01.

Test cases:

SSA interpreter:

  • Now middle output will not be removed so we can easily check them. 650c846

@mengzhuo mengzhuo merged commit 4e844ee into plctlab:main Jul 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants