aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-10-17 13:42:59 +0200
committerRichard Biener <rguenther@suse.de>2023-10-17 14:24:51 +0200
commit323209cd73bf1d81d91637677db5883afc8ae5f6 (patch)
tree2e288c4840292fdd7e906c1cd6ccc7a2a2f24297 /gcc/cp/constexpr.cc
parentfbdf88a1f6de2399101ecea948ff1abbf82459fc (diff)
downloadgcc-323209cd73bf1d81d91637677db5883afc8ae5f6.zip
gcc-323209cd73bf1d81d91637677db5883afc8ae5f6.tar.gz
gcc-323209cd73bf1d81d91637677db5883afc8ae5f6.tar.bz2
tree-optimization/111846 - put simd-clone-info into SLP tree
The following avoids bogously re-using the simd-clone-info we currently hang off stmt_info from two different SLP contexts where a different number of lanes should have chosen a different best simdclone. PR tree-optimization/111846 * tree-vectorizer.h (_slp_tree::simd_clone_info): Add. (SLP_TREE_SIMD_CLONE_INFO): New. * tree-vect-slp.cc (_slp_tree::_slp_tree): Initialize SLP_TREE_SIMD_CLONE_INFO. (_slp_tree::~_slp_tree): Release it. * tree-vect-stmts.cc (vectorizable_simd_clone_call): Use SLP_TREE_SIMD_CLONE_INFO or STMT_VINFO_SIMD_CLONE_INFO dependent on if we're doing SLP. * gcc.dg/vect/pr111846.c: New testcase.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions