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 <rguent...@suse.de> PR target/87545 * config/i386/x86-tune-costs.h (intel_cost): Adjust cost of cheap SSE instruction. 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. */