+2006-06-11 Roger Sayle <roger@eyesopen.com>
+
+ PR target/27858
+ Revert incorrect fix for PR target/27158
+ 2006-05-08 Roger Sayle <roger@eyesopen.com>
+ * reload.c (find_reloads_toplev): Only return the simplified SUBREG
+ of a reg_equiv_constant if the result is a legitimate constant.
+
2006-06-11 Roger Sayle <roger@eyesopen.com>
PR target/27158
&& reg_renumber[regno] < 0
&& reg_equiv_constant[regno] != 0
&& (tem = gen_lowpart_common (GET_MODE (x),
- reg_equiv_constant[regno])) != 0
- && LEGITIMATE_CONSTANT_P (tem))
+ reg_equiv_constant[regno])) != 0)
return tem;
if (regno >= FIRST_PSEUDO_REGISTER
simplify_gen_subreg (GET_MODE (x), reg_equiv_constant[regno],
GET_MODE (SUBREG_REG (x)), SUBREG_BYTE (x));
gcc_assert (tem);
- if (LEGITIMATE_CONSTANT_P (tem))
- return tem;
+ return tem;
}
/* If the subreg contains a reg that will be converted to a mem,