Commit 2e2c6df3 by Richard Sandiford Committed by Richard Sandiford

Remove global call sets: sched-deps.c

This is a straight replacement of an existing "full or partial"
call-clobber check.

2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* sched-deps.c (deps_analyze_insn): Use the ABI of the target
	function to test whether a register is fully or partly clobbered.

From-SVN: r276335
parent 52053c3b
2019-09-30 Richard Sandiford <richard.sandiford@arm.com> 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
* sched-deps.c (deps_analyze_insn): Use the ABI of the target
function to test whether a register is fully or partly clobbered.
2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
* rtlanal.c: Include function-abi.h. * rtlanal.c: Include function-abi.h.
(reg_set_p): Use insn_callee_abi to get the ABI of the called (reg_set_p): Use insn_callee_abi to get the ABI of the called
function and clobbers_reg_p to test whether the register function and clobbers_reg_p to test whether the register
......
...@@ -3736,9 +3736,7 @@ deps_analyze_insn (class deps_desc *deps, rtx_insn *insn) ...@@ -3736,9 +3736,7 @@ deps_analyze_insn (class deps_desc *deps, rtx_insn *insn)
Since we only have a choice between 'might be clobbered' Since we only have a choice between 'might be clobbered'
and 'definitely not clobbered', we must include all and 'definitely not clobbered', we must include all
partly call-clobbered registers here. */ partly call-clobbered registers here. */
else if (targetm.hard_regno_call_part_clobbered else if (callee_abi.clobbers_at_least_part_of_reg_p (i))
(callee_abi.id (), i, reg_raw_mode[i])
|| TEST_HARD_REG_BIT (regs_invalidated_by_call, i))
SET_REGNO_REG_SET (reg_pending_clobbers, i); SET_REGNO_REG_SET (reg_pending_clobbers, i);
/* We don't know what set of fixed registers might be used /* We don't know what set of fixed registers might be used
by the function, but it is certain that the stack pointer by the function, but it is certain that the stack pointer
......
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