diff options
author | Richard Biener <rguenther@suse.de> | 2024-05-17 14:26:38 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-22 13:18:28 +0200 |
commit | 0c7792f707368d0225a9a457895b847ef660c270 (patch) | |
tree | 2731196b806414f50490212f738604dc859d67f4 /gcc/except.cc | |
parent | 1a5e4dd83788ea4c049d354d83ad58a6a3d747e6 (diff) | |
download | gcc-0c7792f707368d0225a9a457895b847ef660c270.zip gcc-0c7792f707368d0225a9a457895b847ef660c270.tar.gz gcc-0c7792f707368d0225a9a457895b847ef660c270.tar.bz2 |
Avoid requiring VEC_PERM represenatives
The following plugs one hole where we require a VEC_PERM node
representative unnecessarily. This is for vect_check_store_rhs
which looks at the RHS and checks whether a constant can be
native encoded. The fix is to guard that with vect_constant_def
additionally and making vect_is_simple_use forgiving for a missing
SLP_TREE_REPRESENTATIVE when the child is a VEC_PERM node,
initializing the scalar def to error_mark_node.
* tree-vect-stmts.cc (vect_check_store_rhs): Look at *rhs
only when it's a vec_constant_def.
(vect_is_simple_use): When we have no representative for
an internal node, fill in *op with error_mark_node.
Diffstat (limited to 'gcc/except.cc')
0 files changed, 0 insertions, 0 deletions