On 7/5/2022 9:00 AM, Tamar Christina via Gcc-patches wrote:
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.

Bootstrapped Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu
and no issues.

Ok for master? and backport to GCC 12?

Thanks,
Tamar


gcc/ChangeLog:

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

gcc/testsuite/ChangeLog:

        PR tree-optimization/106063
        * gcc.dg/pr106063.c: New test.
OK for both the trunk and gcc-12.
jeff

Reply via email to