]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/114736 - SLP DFS walk issue
authorRichard Biener <rguenther@suse.de>
Tue, 16 Apr 2024 09:33:48 +0000 (11:33 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 16 Apr 2024 10:37:04 +0000 (12:37 +0200)
commitf949481a1f7ab973608a4ffcc0e342ab5a74e8e4
treea128546f9ef66436955cea1f9f29cfd047a4c72e
parent45a41ace55d0ffb1097e374868242329788ec82a
tree-optimization/114736 - SLP DFS walk issue

The following fixes a DFS walk issue when identifying to be ignored
latch edges.  We have (bogus) SLP_TREE_REPRESENTATIVEs for VEC_PERM
nodes so those have to be explicitly ignored as possibly being PHIs.

PR tree-optimization/114736
* tree-vect-slp.cc (vect_optimize_slp_pass::is_cfg_latch_edge):
Do not consider VEC_PERM_EXPRs as PHI use.

* gfortran.dg/vect/pr114736.f90: New testcase.
gcc/testsuite/gfortran.dg/vect/pr114736.f90 [new file with mode: 0644]
gcc/tree-vect-slp.cc