aboutsummaryrefslogtreecommitdiff
path: root/src/ssa.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-03 18:36:21 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-03 18:36:21 +0300
commitf4be2429f38faba0c54862055f808cb242a7eb49 (patch)
tree84f03075952f2c22ccf774646168a08b2f47b8c6 /src/ssa.c
parent36de4f902c4eec9f8d918e00cf0bf89d6b670cf5 (diff)
downloadqbt-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssa.c b/src/ssa.c
index 59e7254..96d1eb1 100644
--- a/src/ssa.c
+++ b/src/ssa.c
@@ -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)