Continue searching in find_oldest_value_reg on class match failure.

From-SVN: r168001
This commit is contained in:
Richard Henderson 2010-12-17 14:51:25 -08:00 committed by Richard Henderson
parent fed2b10179
commit f90333ebe7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-12-17 Richard Henderson <rth@redhat.com>
* regcprop.c (find_oldest_value_reg): Continue search instead of
failing if an element in the copy chain is of the wrong regclass.
2010-12-17 Paolo Bonzini <bonzini@gnu.org>
PR c/20385

View File

@ -457,7 +457,7 @@ find_oldest_value_reg (enum reg_class cl, rtx reg, struct value_data *vd)
rtx new_rtx;
if (!in_hard_reg_set_p (reg_class_contents[cl], mode, i))
return NULL_RTX;
continue;
new_rtx = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
if (new_rtx)