mirror of git://gcc.gnu.org/git/gcc.git
Continue searching in find_oldest_value_reg on class match failure.
From-SVN: r168001
This commit is contained in:
parent
fed2b10179
commit
f90333ebe7
|
|
@ -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>
|
2010-12-17 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
PR c/20385
|
PR c/20385
|
||||||
|
|
|
||||||
|
|
@ -457,7 +457,7 @@ find_oldest_value_reg (enum reg_class cl, rtx reg, struct value_data *vd)
|
||||||
rtx new_rtx;
|
rtx new_rtx;
|
||||||
|
|
||||||
if (!in_hard_reg_set_p (reg_class_contents[cl], mode, i))
|
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);
|
new_rtx = maybe_mode_change (oldmode, vd->e[regno].mode, mode, i, regno);
|
||||||
if (new_rtx)
|
if (new_rtx)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue