(choose_reload_regs): Handle SUBREG in reload_earlyclobber
when matching output reloads for setting reload_when_needed. From-SVN: r3670
This commit is contained in:
parent
f75d38a795
commit
210eed9496
@ -4187,8 +4187,14 @@ choose_reload_regs (insn, avoid_return_reg)
|
||||
{
|
||||
/* But earlyclobber operands must stay as RELOAD_OTHER. */
|
||||
for (i = 0; i < n_earlyclobbers; i++)
|
||||
{
|
||||
if (GET_CODE (reload_earlyclobbers[i]) == SUBREG
|
||||
&& reg_overlap_mentioned_for_reload_p (reload_out[j],
|
||||
SUBREG_REG (reload_earlyclobbers[i])))
|
||||
break;
|
||||
if (rtx_equal_p (reload_out[j], reload_earlyclobbers[i]))
|
||||
break;
|
||||
}
|
||||
if (i == n_earlyclobbers)
|
||||
reload_when_needed[j] = RELOAD_FOR_OUTPUT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user