i386.c: Fix costing of vector FMA.

2018-10-18  Richard Biener  <rguenther@suse.de>

	* config/i386/i386.c: Fix costing of vector FMA.

From-SVN: r265266
This commit is contained in:
Richard Biener 2018-10-18 12:19:44 +00:00 committed by Richard Biener
parent b960e909ae
commit 200045a924
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-10-18 Richard Biener <rguenther@suse.de>
* config/i386/i386.c: Fix costing of vector FMA.
2018-10-18 Richard Biener <rguenther@suse.de>
* config/i386/i386.c (ix86_vec_cost): Remove !parallel path

View File

@ -40171,7 +40171,8 @@ ix86_rtx_costs (rtx x, machine_mode mode, int outer_code_i, int opno,
gcc_assert (TARGET_FMA || TARGET_FMA4 || TARGET_AVX512F);
*total = ix86_vec_cost (mode,
mode == SFmode ? cost->fmass : cost->fmasd);
GET_MODE_INNER (mode) == SFmode
? cost->fmass : cost->fmasd);
*total += rtx_cost (XEXP (x, 1), mode, FMA, 1, speed);
/* Negate in op0 or op2 is free: FMS, FNMA, FNMS. */