"Fix" PR87545
diff mbox series

Message ID alpine.LSU.2.20.1901021202100.23386@zhemvz.fhfr.qr
State New
Headers show
Series
  • "Fix" PR87545
Related show

Commit Message

Richard Biener Jan. 2, 2019, 11:03 a.m. UTC
This adjusts intel costs to reflect other intel CPU costs in _one_ place
to fix PR87545.  But I noted that -mtune=intel lacks any common sense
so please intel folks do your homework.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2019-01-02  Richard Biener  <rguenther@suse.de>

	PR target/87545
	* config/i386/x86-tune-costs.h (intel_cost): Adjust
	cost of cheap SSE instruction.

Patch
diff mbox series

Index: gcc/config/i386/x86-tune-costs.h
===================================================================
--- gcc/config/i386/x86-tune-costs.h	(revision 267505)
+++ gcc/config/i386/x86-tune-costs.h	(working copy)
@@ -2115,7 +2115,7 @@  struct processor_costs intel_cost = {
   COSTS_N_INSNS (8),			/* cost of FCHS instruction.  */
   COSTS_N_INSNS (40),			/* cost of FSQRT instruction.  */
 
-  COSTS_N_INSNS (8),			/* cost of cheap SSE instruction.  */
+  COSTS_N_INSNS (1),			/* cost of cheap SSE instruction.  */
   COSTS_N_INSNS (8),			/* cost of ADDSS/SD SUBSS/SD insns.  */
   COSTS_N_INSNS (8),			/* cost of MULSS instruction.  */
   COSTS_N_INSNS (8),			/* cost of MULSD instruction.  */