Commit 11717c64 by Bernd Schmidt Committed by Bernd Schmidt

Allow a port to use pseudos as call args; don't put them in the fusage.

	* expr.c (use_reg_mode): Just return for pseudo registers.

From-SVN: r217198
parent 9cb66714
2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
* expr.c (use_reg_mode): Just return for pseudo registers.
* combine.c (try_combine): Don't allow a call as one of the source
insns.
......@@ -2342,7 +2342,10 @@ copy_blkmode_to_reg (machine_mode mode, tree src)
void
use_reg_mode (rtx *call_fusage, rtx reg, machine_mode mode)
{
gcc_assert (REG_P (reg) && REGNO (reg) < FIRST_PSEUDO_REGISTER);
gcc_assert (REG_P (reg));
if (!HARD_REGISTER_P (reg))
return;
*call_fusage
= gen_rtx_EXPR_LIST (mode, gen_rtx_USE (VOIDmode, reg), *call_fusage);
......
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