]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust variable shift costs for IA MCU
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 9 Jul 2015 20:35:56 +0000 (20:35 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 9 Jul 2015 20:35:56 +0000 (13:35 -0700)
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

gcc/ChangeLog
gcc/config/i386/i386.c

index c05f3dfea2759ed42944bd5d4f63fa11e82585bb..f86571193dd87c384f3ab122ebb65c69d83824eb 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/66821
+       * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
+
 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
index 54ee6f3d4fdf9d622d9bc8363b9a49cf75301b32..a18c733d21120e4a283b7c168d8705a891235f4b 100644 (file)
@@ -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 */