]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/107766 - ICE with recent -ffp-contract=off fix
authorRichard Biener <rguenther@suse.de>
Mon, 21 Nov 2022 06:56:06 +0000 (07:56 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 22 Nov 2022 07:06:14 +0000 (08:06 +0100)
commit1a06ae6f2f4f292fd05a900bcf433cb4282da1e3
tree2f6a9cc6b709270c776e89f7ff21c31f125b1093
parentd5fce9f6c15554a7d5bfbbcd1740200f1d32fa15
tree-optimization/107766 - ICE with recent -ffp-contract=off fix

The following uses *node to check for FP types rather than the
child nodes which could be constant leafs and thus without a
vector type.

PR tree-optimization/107766
* tree-vect-slp-patterns.cc (complex_mul_pattern::matches):
Use *node to check for FP vector types.

* g++.dg/vect/pr107766.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr107766.cc [new file with mode: 0644]
gcc/tree-vect-slp-patterns.cc