]> gcc.gnu.org Git - 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 <rguenth@gcc.gnu.org>
Wed, 11 Sep 2024 12:56:10 +0000 (14:56 +0200)
commit09a514fbb67caf7e33a6ceddf524ee21024c33c5
tree30f4ca228feaddd6b1897e72663f7025dc1dc06a
parent3fd07d4f04f43816a038daf9b16c6d5bf2e96c9b
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.
gcc/testsuite/g++.dg/vect/pr116674.cc [new file with mode: 0644]
gcc/tree-vect-stmts.cc
This page took 0.053288 seconds and 5 git commands to generate.