aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorJames Greenhalgh <james.greenhalgh@arm.com>2014-11-06 14:18:52 +0000
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>2014-11-06 14:18:52 +0000
commit5a6bc9c7188163b20276d6dd80c7c76165fdf9c2 (patch)
tree162af30bab815fda1ca85c7ea7dcbb61d48d87e8 /gcc/target.h
parent34896cd612476e1ee0937ff5bd32f597da944866 (diff)
downloadgcc-5a6bc9c7188163b20276d6dd80c7c76165fdf9c2.zip
gcc-5a6bc9c7188163b20276d6dd80c7c76165fdf9c2.tar.gz
gcc-5a6bc9c7188163b20276d6dd80c7c76165fdf9c2.tar.bz2
[Patchv3] Control SRA and IPA-SRA by a param rather than MOVE_RATIO
gcc/ * params.def (sra-max-scalarization-size-Ospeed): New. (sra-max-scalarization-size-Osize): Likewise. * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document. (sra-max-scalarization-size-Osize): Likewise. * toplev.c (process_options): Set default values for new parameters. * tree-sra.c (analyze_all_variable_accesses): Use new parameters. * targhooks.c (get_move_ratio): Remove static designator. * target.h (get_move_ratio): Declare. From-SVN: r217191
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 40d7841..65250ed 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -102,6 +102,10 @@ extern int elf_record_gcc_switches (print_switch_type type, const char *);
we disable such optimizations on such targets, using this function. */
extern bool target_default_pointer_address_modes_p (void);
+/* For hooks which use the MOVE_RATIO macro, this gives the legacy default
+ behaviour. */
+extern unsigned int get_move_ratio (bool);
+
struct stdarg_info;
struct spec_info_def;
struct hard_reg_set_container;