ref: d45d6cb5b1db467f990332c88492e57f687fa316
parent: e9f06c461c5d8eebd5de7ab7ff9ab3af765a3a63
author: Ori Bernstein <[email protected]>
date: Tue Apr 2 07:45:43 EDT 2013
Remove some dead stores.
--- a/6/isel.c
+++ b/6/isel.c
@@ -415,7 +415,6 @@
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]));
--- a/6/ra.c
+++ b/6/ra.c
@@ -998,7 +998,6 @@
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 @@
s->initial = mkbs();
for (i = 0; i < Nsaved; i++)
bsput(s->shouldspill, s->calleesave[i]->reg.id);
- spilled = 0;
do {
setup(s);
liveness(s);