aboutsummaryrefslogtreecommitdiffhomepage
path: root/ssa.c
Commit message (Collapse)AuthorAgeFilesLines
* backend: fix regalloc to work with more complex dataflowlemon2023-06-241-0/+23
| | | | | | | | basically an allocation map at the beginning (in) and end (out) of each block is kept and after the first allocation pass another pass is ran to resolve allocation conflicts between each edge, plus another pass to finish lowering phi functions. also introduced `regset` and plenty of other miscellaneous fixes
* change RMORE -> RADDR; use RXXX (RNONE) for special args,also undeflemon2023-06-221-2/+0
|
* mem2reg: implement ssa construction; this breaks regalloc right nowlemon2023-06-211-68/+11
|
* explicitly store predecessors in each blocklemon2023-06-211-3/+3
|
* add basic mem2reglemon2023-06-201-0/+89
promotes uniform stack slots to temporaries currently only for immutable variables, next thing to implement is ssa construction