Commit b5a5beb9 by Aldy Hernandez Committed by Aldy Hernandez

rs6000.c (rs6000_stack_info): Fix caching of SPE 64-bit register usage.

	* config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
	64-bit register usage.
	(spe_func_has_64bit_regs_p): Add FIXME note.

[[Split portion of a mixed commit.]]

From-SVN: r93648.2
parent 5ca18999
2005-01-14 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
64-bit register usage.
(spe_func_has_64bit_regs_p): Add FIXME note.
2005-01-14 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_generate_compare): Replace
flag_finite_math_only with flag_unsafe_math_optimizations.
......
......@@ -12621,10 +12621,9 @@ rs6000_stack_info (void)
{
/* Cache value so we don't rescan instruction chain over and over. */
if (cfun->machine->insn_chain_scanned_p == 0)
{
cfun->machine->insn_chain_scanned_p = 1;
info_ptr->spe_64bit_regs_used = (int) spe_func_has_64bit_regs_p ();
}
cfun->machine->insn_chain_scanned_p
= spe_func_has_64bit_regs_p () + 1;
info_ptr->spe_64bit_regs_used = cfun->machine->insn_chain_scanned_p - 1;
}
/* Select which calling sequence. */
......@@ -12933,6 +12932,13 @@ spe_func_has_64bit_regs_p (void)
{
rtx i;
/* FIXME: This should be implemented with attributes...
(set_attr "spe64" "true")....then,
if (get_spe64(insn)) return true;
It's the only reliable way to do the stuff below. */
i = PATTERN (insn);
if (GET_CODE (i) == SET)
{
......
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