aboutsummaryrefslogtreecommitdiff
path: root/src/ssa.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
commitfd5bdaff40f93546009e1ec854fd26df01e78f22 (patch)
tree2750eff7430b62d790292df238595a22e3f02616 /src/ssa.c
parentcb71bb6ad44d5e6ea4d4af4896c23088957cbdb3 (diff)
downloadqbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.tar.gz
qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.zip
correct addr
+ Doesn't quite implement stack handling fully as of yet, but slowly getting there
Diffstat (limited to 'src/ssa.c')
-rw-r--r--src/ssa.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ssa.c b/src/ssa.c
index 4283dae..186d6b5 100644
--- a/src/ssa.c
+++ b/src/ssa.c
@@ -151,9 +151,6 @@ static void collect_params(struct blk *b, int visited)
}
}
-#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)
{
assert(from.class == TMP);
@@ -164,14 +161,14 @@ static void add_rewrite_rule(struct vec *rmap, struct val from, struct val to)
vec_append(rmap, &no);
}
- tmpval_at(*rmap, from.r) = to;
+ val_at(*rmap, from.r) = to;
}
static struct val rewrite_tmp(struct vec *rmap, struct val from)
{
assert(from.class == TMP);
assert(from.r <= (int64_t)vec_len(rmap));
- struct val v = tmpval_at(*rmap, from.r);
+ struct val v = val_at(*rmap, from.r);
assert(v.class == TMP);
return v;
}