]> gcc.gnu.org Git - gcc.git/commit
target.def (class_likely_spilled_p): New hook.
authorAnatoly Sokolov <aesok@post.ru>
Thu, 2 Sep 2010 14:29:37 +0000 (18:29 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Thu, 2 Sep 2010 14:29:37 +0000 (18:29 +0400)
commit07b8f0a812a056b69fcaf00bde67aa74b5b02397
tree8800ae6420f6689c40bea9995085ad6bf47c0f65
parent844022b747eebc8f02c0e7b4165cc10b7521432e
target.def (class_likely_spilled_p): New hook.

* target.def (class_likely_spilled_p): New hook.
* doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
* doc/tm.texi: Regenerate.
* targhooks.c (default_class_likely_spilled_p): New function.
* targhooks.h (default_class_likely_spilled_p): Declare.
* regs.h (CLASS_LIKELY_SPILLED_P): Remove.
* combine.c: (cant_combine_insn_p, likely_spilled_retval_p): Use
TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
Use fixed_reg_set instead of fixed_regs.
* cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
* calls.c (avoid_likely_spilled_reg): Ditto.
* ira-conflicts.c: (ira_build_conflicts): Ditto.
* ira.c (update_equiv_regs): Ditto.
* mode-switching.c (create_pre_exit): Ditto.
* regmove.c (find_matches): Ditto.
(regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target
hook.
* reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
(small_register_class_p): New inline function.
(push_secondary_reload, find_reusable_reload, find_reloads): Use
small_register_class_p instead of SMALL_REGISTER_CLASS_P.

* config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
* config/i386/i386.c (ix86_class_likely_spilled_p): New.
(TARGET_CLASS_LIKELY_SPILLED_P): Define.

From-SVN: r163779
18 files changed:
gcc/ChangeLog
gcc/calls.c
gcc/combine.c
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/cse.c
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/ira-conflicts.c
gcc/ira.c
gcc/mode-switching.c
gcc/regmove.c
gcc/regs.h
gcc/reload.c
gcc/sched-rgn.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
This page took 0.061561 seconds and 5 git commands to generate.