From af4ba42308c17cd9e35db46bfbc2036fc45a12b2 Mon Sep 17 00:00:00 2001 From: Kenneth Zadeck Date: Tue, 1 May 2012 14:45:24 +0000 Subject: Makefile.in (lower-subreg.o, [...]): Depend on lower-subreg.h. gcc/ 2012-03-31 Kenneth Zadeck Richard Sandiford * Makefile.in (lower-subreg.o, target-globals.o): Depend on lower-subreg.h. * lower-subreg.h: New file. * target-globals.h (this_target_lower_subreg): Declare. (target_globals): Add lower_subreg; (restore_target_globals): Restore this_target_lower_subreg. * target-globals.c: Include it. (default_target_globals): Add default_target_lower_subreg. (save_target_globals): Initialize target_lower_subreg. * rtl.h (init_lower_subreg): Added declaration. * toplev.c (backend_init_target): Call initializer for lower-subreg pass. * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros. (default_target_lower_subreg): New variable. (this_target_lower_subreg): Likewise. (twice_word_mode, choices): New macros. (shift_cost, compute_splitting_shift, compute_costs) (init_lower_subreg): New functions. (resolve_simple_move): Add speed_p argument. Check choices. (find_pseudo_copy): Don't check the mode size here. (resolve_simple_move): Assert the mode size. (find_decomposable_shift_zext): Add speed_p argument and return a bool. Check choices. (resolve_shift_zext): Add comment. (dump_shift_choices, dump_choices): New functions. (decompose_multiword_subregs): Dump list of profitable transformations. Add code to skip non profitable transformations. Update calls to simple_move and find_decomposable_shift_zext. Co-Authored-By: Richard Sandiford From-SVN: r187015 --- gcc/target-globals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/target-globals.h') diff --git a/gcc/target-globals.h b/gcc/target-globals.h index 166f21a..fb0f260 100644 --- a/gcc/target-globals.h +++ b/gcc/target-globals.h @@ -35,6 +35,7 @@ extern struct target_ira_int *this_target_ira_int; extern struct target_builtins *this_target_builtins; extern struct target_gcse *this_target_gcse; extern struct target_bb_reorder *this_target_bb_reorder; +extern struct target_lower_subreg *this_target_lower_subreg; struct GTY(()) target_globals { struct target_flag_state *GTY((skip)) flag_state; @@ -51,6 +52,7 @@ struct GTY(()) target_globals { struct target_builtins *GTY((skip)) builtins; struct target_gcse *GTY((skip)) gcse; struct target_bb_reorder *GTY((skip)) bb_reorder; + struct target_lower_subreg *GTY((skip)) lower_subreg; }; extern struct target_globals default_target_globals; @@ -74,6 +76,7 @@ restore_target_globals (struct target_globals *g) this_target_builtins = g->builtins; this_target_gcse = g->gcse; this_target_bb_reorder = g->bb_reorder; + this_target_lower_subreg = g->lower_subreg; } #endif -- cgit v1.1