diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-09 20:35:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-09-25 14:26:00 -0700 |
commit | dcc7eb69eb137e403df2cec19d07de918603ac47 (patch) | |
tree | 9e26aed413b0741b18c4858104c080afb21d39a5 /gcc | |
parent | 67aad1d9d3609a39061c2bc7954f53b7016f51de (diff) | |
download | gcc-dcc7eb69eb137e403df2cec19d07de918603ac47.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 5b18c525661..9dc430a9720 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -445,7 +445,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 */ |