ref: 71825983b463d8b86c904bb76db0218b1a621bf4
parent: 6db6735df5f0e8d44c591c0ff8130c47f94c5d37
author: Ori Bernstein <[email protected]>
date: Mon Dec 16 11:55:25 EST 2013
Reenable removal of redundant movs. No idea why this was disabled.
--- a/6/isel.c
+++ b/6/isel.c
@@ -750,8 +750,8 @@
if (subreg(insn->args[0], insn->args[1]))
insn->args[0] = coreg(insn->args[0]->reg.colour, insn->args[1]->mode);
/* moving a reg to itself is dumb. */
- // if (insn->args[0]->reg.colour == insn->args[1]->reg.colour)
- // return;
+ if (insn->args[0]->reg.colour == insn->args[1]->reg.colour)
+ return;
break;
default:
break;