Commit 0b182178 by Anatoly Sokolov Committed by Anatoly Sokolov

bfin.h (CLASS_LIKELY_SPILLED_P): Remove.

	* config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
	* config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
	(bfin_class_likely_spilled_p): New function

From-SVN: r164421
parent 039d9ea1
2010-09-19 Anatoly Sokolov <aesok@post.ru>
* config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
(bfin_class_likely_spilled_p): New function
2010-09-19 Ira Rosen <irar@il.ibm.com>
PR tree-optimization/45714
......
......@@ -2543,6 +2543,29 @@ bfin_secondary_reload (bool in_p, rtx x, reg_class_t rclass_i,
return NO_REGS;
}
/* Implement TARGET_CLASS_LIKELY_SPILLED_P. */
static bool
bfin_class_likely_spilled_p (reg_class_t rclass)
{
switch (rclass)
{
case PREGS_CLOBBERED:
case PROLOGUE_REGS:
case P0REGS:
case D0REGS:
case D1REGS:
case D2REGS:
case CCREGS:
return true;
default:
break;
}
return false;
}
/* Implement TARGET_HANDLE_OPTION. */
......@@ -6635,6 +6658,9 @@ bfin_expand_builtin (tree exp, rtx target ATTRIBUTE_UNUSED,
#undef TARGET_SECONDARY_RELOAD
#define TARGET_SECONDARY_RELOAD bfin_secondary_reload
#undef TARGET_CLASS_LIKELY_SPILLED_P
#define TARGET_CLASS_LIKELY_SPILLED_P bfin_class_likely_spilled_p
#undef TARGET_DELEGITIMIZE_ADDRESS
#define TARGET_DELEGITIMIZE_ADDRESS bfin_delegitimize_address
......
......@@ -750,15 +750,6 @@ enum reg_class
registers. */
#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
#define CLASS_LIKELY_SPILLED_P(CLASS) \
((CLASS) == PREGS_CLOBBERED \
|| (CLASS) == PROLOGUE_REGS \
|| (CLASS) == P0REGS \
|| (CLASS) == D0REGS \
|| (CLASS) == D1REGS \
|| (CLASS) == D2REGS \
|| (CLASS) == CCREGS)
/* Do not allow to store a value in REG_CC for any mode */
/* Do not allow to store value in pregs if mode is not SI*/
#define HARD_REGNO_MODE_OK(REGNO, MODE) hard_regno_mode_ok((REGNO), (MODE))
......
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