From: Claudiu Zissulescu Date: Wed, 25 Jul 2018 14:31:34 +0000 (+0200) Subject: [ARC] Update default optimizations for size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c44fa4a6660c4d81891093578d5e9463d6d85b73;p=gcc.git [ARC] Update default optimizations for size. Update the list of default optimizations used for size compilations. gcc/ 2018-07-10 Claudiu Zissulescu * common/config/arc/arc-common.c (arc_option_optimization_table): Update default optimizations for size. From-SVN: r262973 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bc31a3e2cb..8118bf68915 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-25 Claudiu Zissulescu + + * common/config/arc/arc-common.c (arc_option_optimization_table): + Update default optimizations for size. + 2018-07-25 Claudiu Zissulescu * config/arc/arc.md (movsf_insn): Add short instruction selection. diff --git a/gcc/common/config/arc/arc-common.c b/gcc/common/config/arc/arc-common.c index f866a0ad523..578431a279d 100644 --- a/gcc/common/config/arc/arc-common.c +++ b/gcc/common/config/arc/arc-common.c @@ -46,17 +46,22 @@ arc_option_init_struct (struct gcc_options *opts) #define OPT_LEVELS_3_PLUS_SPEED_ONLY OPT_LEVELS_3_PLUS static const struct default_options arc_option_optimization_table[] = { - { OPT_LEVELS_SIZE, OPT_fsection_anchors, NULL, 1 }, { OPT_LEVELS_ALL, OPT_mRcq, NULL, 1 }, { OPT_LEVELS_ALL, OPT_mRcw, NULL, 1 }, { OPT_LEVELS_ALL, OPT_msize_level_, NULL, 1 }, - { OPT_LEVELS_3_PLUS_SPEED_ONLY, OPT_msize_level_, NULL, 0 }, - { OPT_LEVELS_SIZE, OPT_msize_level_, NULL, 3 }, - { OPT_LEVELS_3_PLUS_SPEED_ONLY, OPT_malign_call, NULL, 1 }, { OPT_LEVELS_ALL, OPT_mearly_cbranchsi, NULL, 1 }, { OPT_LEVELS_ALL, OPT_mbbit_peephole, NULL, 1 }, + { OPT_LEVELS_SIZE, OPT_ftree_loop_optimize, NULL, 0}, + { OPT_LEVELS_SIZE, OPT_fmove_loop_invariants, NULL, 0}, + { OPT_LEVELS_SIZE, OPT_fbranch_count_reg, NULL, 0}, + { OPT_LEVELS_SIZE, OPT_fdelayed_branch, NULL, 0 }, + { OPT_LEVELS_SIZE, OPT_fsection_anchors, NULL, 1 }, { OPT_LEVELS_SIZE, OPT_mq_class, NULL, 1 }, { OPT_LEVELS_SIZE, OPT_mcase_vector_pcrel, NULL, 1 }, + { OPT_LEVELS_SIZE, OPT_msize_level_, NULL, 3 }, + { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, + { OPT_LEVELS_3_PLUS_SPEED_ONLY, OPT_msize_level_, NULL, 0 }, + { OPT_LEVELS_3_PLUS_SPEED_ONLY, OPT_malign_call, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } };