]> 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>
Fri, 3 May 2024 12:50:02 +0000 (14:50 +0200)
commit0624852a3ea684f6b9dabea864bcb45e31304728
tree64b0ed903a5fff2a212917a12bf67ffc2e96ba39
parent5a3cc62dbb45185dd1ca32caec80d57a320ec5a0
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.

(cherry picked from commit f949481a1f7ab973608a4ffcc0e342ab5a74e8e4)
gcc/testsuite/gfortran.dg/vect/pr114736.f90 [new file with mode: 0644]
gcc/tree-vect-slp.cc