Commit 8bb44f9a by Richard Stallman

(choose_reload_regs): Verify reload_out[j != 0

before comparing with relaod_earlyclobber elements.

From-SVN: r3731
parent b1e64e0d
......@@ -4183,7 +4183,7 @@ choose_reload_regs (insn, avoid_return_reg)
if (reload_when_needed[j] == RELOAD_OTHER
&& ! reload_needed_for_multiple[j])
{
if (reload_in[j] == 0)
if (reload_in[j] == 0 && reload_out[j] != 0)
{
/* But earlyclobber operands must stay as RELOAD_OTHER. */
for (i = 0; i < n_earlyclobbers; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment