Commit graph

5 commits

Author SHA1 Message Date
9685f00e10 Make value allocator aware of normal values used in branching
This way we avoid allocating and using a temporary variable when
branching based on the contents of a variable.
2025-07-06 22:22:18 +02:00
156edc2f09 Rethink how data works at the assembly code generation level 2025-07-06 19:04:36 +02:00
f814f9fbb9 Some horrible flailing for the sake of correctness 2025-07-03 20:11:08 +02:00
f8f5892d98 Somewhat clunky optimization for reusing temporary variable slots 2025-07-01 20:39:09 +02:00
a18c13a86e Add value allocator (typically called register allocator)
It's unfinished and doesn't optimize space used by temporary
variables. Every temporary gets its own memory slot right now.
2025-07-01 13:38:31 +02:00