Reading up on SSA stuff again because it's been a few years since I last poked at this...

"A Gentle Introduction to LLVM IR"
https://mcyoung.xyz/2023/08/01/llvm-ir/
Reminded me that LLVM initially leaves locals in stack allocated slots and then "promotes" them in the mem2reg pass.

"A catalog of ways to generate SSA"
https://bernsteinbear.com/blog/ssa/
New since I last looked, links to a selection of papers.

"SSA-based Register Allocation"
https://compilers.cs.uni-saarland.de/projects/ssara/

#Projects #Compiler

A Gentle Introduction to LLVM IR · mcyoung

@swetland i read a really good blog about the cranelift register allocator a year or so ago, and i *think* it was one of these two, but not sure which one (or maybe both?) -- but they're both long:

- https://cfallin.org/blog/2022/06/09/cranelift-regalloc2/

- https://d-sonuga.netlify.app/gsoc/regalloc-ii/

Cranelift, Part 4: A New Register Allocator