ref: 199b9cbd18da9e32a3bacdee6266a098036b34be
parent: 5db63a604d13a8cff98c78c4977bf1cde43ead88
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jan 14 09:49:33 EST 2016
Don't move registers to themselves. Missed a case.
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -151,6 +151,9 @@
insn->args[1] = coreg(insn->args[1]->reg.colour, ModeL);
}
}
+ /* moving a reg to itself is dumb. */
+ if (insn->args[0]->reg.colour == insn->args[1]->reg.colour)
+ return;
break;
case Imovs:
if (insn->args[0]->reg.colour == Rnone || insn->args[1]->reg.colour == Rnone)