]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116674 - vectorizable_simd_clone_call and re-analysis
authorRichard Biener <rguenther@suse.de>
Wed, 11 Sep 2024 11:54:33 +0000 (13:54 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 20 Jun 2025 09:55:29 +0000 (11:55 +0200)
commit638e90e5e8000b6b6b320b02229310c63c441b9f
tree46f2820e99366c67f74dc60c5a31d28bf55aa393
parent9578e7eafa53c5236747f8de0aad007a1405f91b
tree-optimization/116674 - vectorizable_simd_clone_call and re-analysis

When SLP analysis scraps an instance because it fails to analyze we
can end up calling vectorizable_* in analysis mode on a node that
was analyzed during the analysis of that instance again.
vectorizable_simd_clone_call wasn't expecting that and instead
guarded analysis/transform code on populated data structures.
The following changes it so it survives re-analysis.

PR tree-optimization/116674
* tree-vect-stmts.cc (vectorizable_simd_clone_call): Support
re-analysis.

* g++.dg/vect/pr116674.cc: New testcase.

(cherry picked from commit 09a514fbb67caf7e33a6ceddf524ee21024c33c5)
gcc/testsuite/g++.dg/vect/pr116674.cc [new file with mode: 0644]
gcc/tree-vect-stmts.cc