diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-03 18:36:21 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-03 18:36:21 +0300 |
| commit | f4be2429f38faba0c54862055f808cb242a7eb49 (patch) | |
| tree | 84f03075952f2c22ccf774646168a08b2f47b8c6 /src/ssa.c | |
| parent | 36de4f902c4eec9f8d918e00cf0bf89d6b670cf5 (diff) | |
| download | qbt-f4be2429f38faba0c54862055f808cb242a7eb49.tar.gz qbt-f4be2429f38faba0c54862055f808cb242a7eb49.zip | |
make regalloc work with ssa form
+ Still not ideal register allocator, but can be improved with some
heuristics and potentially completely replaced in the future if so
desired with graph coloring or something.
Diffstat (limited to 'src/ssa.c')
| -rw-r--r-- | src/ssa.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -78,7 +78,7 @@ static void build_params(struct blk *b, int visited) struct val in2 = i.in[1]; if (in2.class == TMP && !has_val(&generated, in2)) add_val(&required, in2); - + struct val out = i.out; if (out.class == TMP) { add_val(&generated, out); @@ -147,7 +147,7 @@ static void collect_params(struct blk *b, int visited) } } -#define tmpval_at(rmap, i)\ +#define tmpval_at(rmap, i) \ vect_at(struct val, rmap, i) static void add_rewrite_rule(struct vec *rmap, struct val from, struct val to) |
