diff options
author | Liwei Xu <liwei.xu@intel.com> | 2022-09-23 13:46:02 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2022-10-11 14:08:31 +0800 |
commit | b88adba751da635c6f0c353c5bc51bbe2ecf4c89 (patch) | |
tree | e6b158b66b12afe79761044260dfe168c2f4df12 /gcc/tree-cfg.cc | |
parent | db24bdc743cf23ea12d2dcf8254d86ab366bb46d (diff) | |
download | gcc-b88adba751da635c6f0c353c5bc51bbe2ecf4c89.zip gcc-b88adba751da635c6f0c353c5bc51bbe2ecf4c89.tar.gz gcc-b88adba751da635c6f0c353c5bc51bbe2ecf4c89.tar.bz2 |
Optimize nested permutation to single VEC_PERM_EXPR [PR54346]
This patch implemented the optimization in PR 54346, which Merges
c = VEC_PERM_EXPR <a, b, VCST0>;
d = VEC_PERM_EXPR <c, c, VCST1>;
to
d = VEC_PERM_EXPR <a, b, NEW_VCST>;
Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}
tree-ssa/forwprop-19.c fail to pass but I'm not sure whether it
is ok to removed it.
gcc/ChangeLog:
PR tree-optimization/54346
* match.pd: Merge the index of VCST then generates the new vec_perm.
gcc/testsuite/ChangeLog:
* gcc.dg/pr54346.c: New test.
Co-authored-by: liuhongt <hongtao.liu@intel.com>
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions