]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end: don't lower past veclower [PR106063]
authorTamar Christina <tamar.christina@arm.com>
Fri, 8 Jul 2022 07:30:22 +0000 (08:30 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 27 Jul 2022 09:23:44 +0000 (11:23 +0200)
commit13d23c313374e15186f33fa6d57a0c9fd5d8b486
tree5fdad2407af954449858e6163065424bb1f8cd91
parent4ca164a6372412a1b3dc62b6fbde77d338e22bd4
middle-end: don't lower past veclower [PR106063]

Hi All,

My previous patch can cause a problem if the pattern matches after veclower
as it may replace the construct with a vector sequence which the target may not
directly support.

As such don't perform the rewriting if after veclower unless the target supports
the operation.  If before veclower do the rewriting as well if the target didn't
support the original operation either.

gcc/ChangeLog:

PR tree-optimization/106063
* match.pd: Do not apply pattern after veclower is not supported.

gcc/testsuite/ChangeLog:

PR tree-optimization/106063
* gcc.dg/pr106063.c: New test.

(cherry picked from commit f7854e2faf7640230062dec3596e71773ca500ed)
gcc/match.pd
gcc/testsuite/gcc.dg/pr106063.c [new file with mode: 0644]