diff options
author | Richard Biener <rguenther@suse.de> | 2022-11-17 09:43:31 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-11-18 08:37:23 +0100 |
commit | c5df8392c5848c0462558f41cdf6eab31db301cf (patch) | |
tree | 6b85c07744f373070b696c17c2d72d05314c1db2 /libcpp/macro.cc | |
parent | f0024bfb228f94e60e06dc32a4983e40a9b90be5 (diff) | |
download | gcc-c5df8392c5848c0462558f41cdf6eab31db301cf.zip gcc-c5df8392c5848c0462558f41cdf6eab31db301cf.tar.gz gcc-c5df8392c5848c0462558f41cdf6eab31db301cf.tar.bz2 |
tree-optimization/107647 - avoid FMA from SLP with -ffp-contract=off
Only with -ffp-contract=fast we can synthesize FMA operations like
vfmaddsub231ps, so properly guard the transform in SLP pattern
detection.
PR tree-optimization/107647
* tree-vect-slp-patterns.cc (addsub_pattern::recognize): Only
allow FMA generation with -ffp-contract=fast for FP types.
(complex_mul_pattern::matches): Likewise.
* gcc.target/i386/pr107647.c: New testcase.
Diffstat (limited to 'libcpp/macro.cc')
0 files changed, 0 insertions, 0 deletions