Commit 8598a9a2 by Jeffrey A Law Committed by Jeff Law

gcse.c (insert_insn_end_bb): Do not search for assignments to non-argumment…

gcse.c (insert_insn_end_bb): Do not search for assignments to non-argumment registers that are mentioned in...

        * gcse.c (insert_insn_end_bb): Do not search for assignments to
        non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.

From-SVN: r41976
parent 37ff4d28
Fri May 11 15:50:13 2001 Jeffrey A Law (law@cygnus.com)
* gcse.c (insert_insn_end_bb): Do not search for assignments to
non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.
* toplev.c (compile_file): Move comment for opening output
file to just before the code that opens the output file.
......
......@@ -4787,6 +4787,11 @@ insert_insn_end_bb (expr, bb, pre)
if (REGNO (XEXP (XEXP (p, 0), 0)) >= FIRST_PSEUDO_REGISTER)
abort ();
/* We only care about registers which can hold function
arguments. */
if (! FUNCTION_ARG_REGNO_P (REGNO (XEXP (XEXP (p, 0), 0))))
continue;
SET_HARD_REG_BIT (parm_regs, REGNO (XEXP (XEXP (p, 0), 0)));
nparm_regs++;
}
......
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