diff options
author | Tamar Christina <tamar.christina@arm.com> | 2022-11-17 08:20:59 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2022-11-17 08:20:59 +0000 |
commit | cbe313060cdcf1d857d42a9e16a1a03e5ff89fff (patch) | |
tree | 72408ab5a9bd4a03b0923b1889334da1c95cf523 /gcc/function.cc | |
parent | 1bc7efa948f75131aa29d5a2337641c4e39fc7c6 (diff) | |
download | gcc-cbe313060cdcf1d857d42a9e16a1a03e5ff89fff.zip gcc-cbe313060cdcf1d857d42a9e16a1a03e5ff89fff.tar.gz gcc-cbe313060cdcf1d857d42a9e16a1a03e5ff89fff.tar.bz2 |
middle-end: ensure that VEC_PERM operands get lowered to the same SSA_NAME. [PR107717]
At the moment when the VEC_PERMs generated by this match.pd rule is generated
it creates two different SSA_NAMEs for the folded operand. Because of this it
the permute switches from a single operand permute to a two operand permute and
the target may no longer support a permute for this.
This fixes it by ensuring we generate the same SSA_NAME for both operands.
gcc/ChangeLog:
PR tree-optimization/107717
* match.pd: Ensure same SSA_NAME.
gcc/testsuite/ChangeLog:
PR tree-optimization/107717
* gcc.target/aarch64/sve2/pr107717.c: New test.
Diffstat (limited to 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions