summaryrefslogtreecommitdiff
path: root/6/ra.c
diff options
context:
space:
mode:
Diffstat (limited to '6/ra.c')
-rw-r--r--6/ra.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/6/ra.c b/6/ra.c
index 9b05857..e8bceda 100644
--- a/6/ra.c
+++ b/6/ra.c
@@ -1111,21 +1111,20 @@ static void rewrite(Isel *s)
*/
static void delnops(Isel *s)
{
- size_t i, j;
- Asmbb *bb;
Insn *insn;
+ Asmbb *bb;
Insn **new;
size_t nnew;
+ size_t i, j;
for (i = 0; i < s->nbb; i++) {
- bb = s->bb[i];
new = NULL;
nnew = 0;
+ bb = s->bb[i];
for (j = 0; j < bb->ni; j++) {
insn = bb->il[j];
- if (ismove(insn))
- if (insn->args[0]->reg.colour == insn->args[1]->reg.colour)
- continue;
+ if (ismove(insn) && insn->args[0]->reg.colour == insn->args[1]->reg.colour)
+ continue;
lappend(&new, &nnew, insn);
}
lfree(&bb->il, &bb->ni);