i965/fs: Reset reg_from when we can't coalesce.
Not setting this would prevented coalescing after a failed attempt if the sources for both MOVs were the same. total instructions in shared programs: 1654531 -> 1650224 (-0.26%) instructions in affected programs: 423167 -> 418860 (-1.02%) GAINED: 2 LOST: 0 Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
7e034a8d77
commit
509b2a6523
|
@ -162,6 +162,7 @@ fs_visitor::register_coalesce()
|
|||
if (!can_coalesce_vars(live_intervals, &instructions, inst,
|
||||
var_to[i], var_from[i])) {
|
||||
can_coalesce = false;
|
||||
reg_from = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue