diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-07-09 20:35:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-07-09 13:35:56 -0700 |
commit | 89be2b1bae2409730f99b4ff5d41d635554a8f6c (patch) | |
tree | 61de275553353261af02b15f9f3dc51705498159 /gcc/config | |
parent | b6d99e1c2dc9922faad6741f3735eba3e94900dd (diff) | |
download | gcc-89be2b1bae2409730f99b4ff5d41d635554a8f6c.zip gcc-89be2b1bae2409730f99b4ff5d41d635554a8f6c.tar.gz gcc-89be2b1bae2409730f99b4ff5d41d635554a8f6c.tar.bz2 |
Adjust variable shift costs for IA MCU
We reduce code size for IA MCU by adjusting variable shift costs for IA
MCU
PR target/66821
* config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
From-SVN: r225635
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 54ee6f3..a18c733 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -420,7 +420,7 @@ static const struct processor_costs iamcu_cost = { COSTS_N_INSNS (1), /* cost of an add instruction */ COSTS_N_INSNS (1) + 1, /* cost of a lea instruction */ - COSTS_N_INSNS (4), /* variable shift costs */ + COSTS_N_INSNS (1), /* variable shift costs */ COSTS_N_INSNS (1), /* constant shift costs */ {COSTS_N_INSNS (11), /* cost of starting multiply for QI */ COSTS_N_INSNS (11), /* HI */ |