diff options
author | qiyao <qiyao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-07 12:28:46 +0000 |
---|---|---|
committer | qiyao <qiyao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-07 12:28:46 +0000 |
commit | d78118a326f1b98e028718a25950680264fb9cdd (patch) | |
tree | 950a823eefdfe7224b81c1148fa0eb418429dda3 /gcc/targhooks.h | |
parent | 0aecb55e5817988f256f6aca95e68dd2504b97c1 (diff) | |
download | gcc-d78118a326f1b98e028718a25950680264fb9cdd.tar.gz |
* Makefile.in: Add $(TARGET_H) to the regrename.o rule.
* regrename.c (struct du_head): Add new element length.
(sort_du_head, get_element, merge, merge_sort_comparison):
New functions of merge sort implementation to du_head list.
(regrename_optimize): Sort du_head linked list by length.
Iterate registers in a preferred-register-first order.
Move some code to ...
(check_new_reg_p): here. New function.
(create_new_chain): Initialize length.
(scan_rtx_reg): Increase length for non-debug insns.
* target.def: New hook preferred_rename_class.
* targhook.c (default_preferred_rename_class): New.
* targhook.h: Declare it.
* doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
* doc/tm.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167534 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/targhooks.h')
-rw-r--r-- | gcc/targhooks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/targhooks.h b/gcc/targhooks.h index 1e603c983dd..db6f7146b00 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -160,6 +160,7 @@ extern int default_register_move_cost (enum machine_mode, reg_class_t, extern bool default_profile_before_prologue (void); extern reg_class_t default_preferred_reload_class (rtx, reg_class_t); extern reg_class_t default_preferred_output_reload_class (rtx, reg_class_t); +extern reg_class_t default_preferred_rename_class (reg_class_t rclass); extern bool default_class_likely_spilled_p (reg_class_t); extern enum unwind_info_type default_debug_unwind_info (void); |