This is the last thing that register_coalesce() still handled.
total instructions in shared programs:
1561060 ->
1560908 (-0.01%)
instructions in affected programs: 15758 -> 15606 (-0.96%)
Reviewed-by: Eric Anholt <eric@anholt.net>
int var_from = live_intervals->var_from_reg(&inst->src[0]);
int var_to = live_intervals->var_from_reg(&inst->dst);
- if (live_intervals->vars_interfere(var_from, var_to))
+ if (live_intervals->vars_interfere(var_from, var_to) &&
+ !inst->dst.equals(inst->src[0]))
continue;
int reg_from = inst->src[0].reg;