summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-04-02 11:45:43 -0400
committerOri Bernstein <ori@eigenstate.org>2013-04-02 11:45:43 -0400
commitd45d6cb5b1db467f990332c88492e57f687fa316 (patch)
tree0738014d88b092c7dbc1135a73a584784c1a3b59
parente9f06c461c5d8eebd5de7ab7ff9ab3af765a3a63 (diff)
downloadmc-d45d6cb5b1db467f990332c88492e57f687fa316.tar.gz
Remove some dead stores.
-rw-r--r--6/isel.c1
-rw-r--r--6/ra.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/6/isel.c b/6/isel.c
index 1c58297..7aea7c1 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -415,7 +415,6 @@ static Loc *gencall(Isel *s, Node *n)
arg = selexpr(s, n->expr.args[i]);
argoff = align(argoff, min(size(n->expr.args[i]), Ptrsz));
if (stacknode(n->expr.args[i])) {
- dst = locreg(ModeQ);
src = locreg(ModeQ);
g(s, Ilea, arg, src, NULL);
blit(s, rsp, src, argoff, 0, size(n->expr.args[i]));
diff --git a/6/ra.c b/6/ra.c
index 631e7d4..9901083 100644
--- a/6/ra.c
+++ b/6/ra.c
@@ -998,7 +998,6 @@ static void rewritebb(Isel *s, Asmbb *bb)
new = NULL;
nnew = 0;
for (j = 0; j < bb->ni; j++) {
- insn = bb->il[j];
/* if there is a remapping, insert the loads and stores as needed */
if (remap(s, bb->il[j], use, &nuse, def, &ndef)) {
for (i = 0; i < nuse; i++) {
@@ -1125,7 +1124,6 @@ void regalloc(Isel *s)
s->initial = mkbs();
for (i = 0; i < Nsaved; i++)
bsput(s->shouldspill, s->calleesave[i]->reg.id);
- spilled = 0;
do {
setup(s);
liveness(s);