diff options
author | Richard Biener <rguenther@suse.de> | 2023-11-03 11:31:37 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-11-03 12:01:02 +0100 |
commit | c0cf9b78573d3d353f22e5dd1c32fecdbca703b8 (patch) | |
tree | 9b939302e9eb5e2f7e83d9c2830c3b9d4ff5be07 | |
parent | 3881d010dca9b5db5301f28e4a1e3a8e4bc40faa (diff) | |
download | gcc-c0cf9b78573d3d353f22e5dd1c32fecdbca703b8.zip gcc-c0cf9b78573d3d353f22e5dd1c32fecdbca703b8.tar.gz gcc-c0cf9b78573d3d353f22e5dd1c32fecdbca703b8.tar.bz2 |
tree-optimization/112366 - remove assert for failed live lane code gen
The following removes a bogus assert constraining the uses that
could appear when a built from scalar defs SLP node constrains
code generation in a way so earlier uses of the vector CTOR
components fail to get vectorized. We can't really constrain the
operation such use appears in.
PR tree-optimization/112366
* tree-vect-loop.cc (vectorizable_live_operation): Remove
assert.
-rw-r--r-- | gcc/tree-vect-loop.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 3b28c82..2a43176 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -10778,7 +10778,7 @@ vectorizable_live_operation (vec_info *vinfo, stmt_vec_info stmt_info, || !PURE_SLP_STMT (vect_stmt_to_vectorize (use_stmt_info)))) { /* ??? This can happen when the live lane ends up being - used in a vector construction code-generated by an + rooted in a vector construction code-generated by an external SLP node (and code-generation for that already happened). See gcc.dg/vect/bb-slp-47.c. Doing this is what would happen if that vector CTOR @@ -10791,11 +10791,6 @@ vectorizable_live_operation (vec_info *vinfo, stmt_vec_info stmt_info, && !vect_stmt_dominates_stmt_p (SSA_NAME_DEF_STMT (new_tree), use_stmt)) { - enum tree_code code = gimple_assign_rhs_code (use_stmt); - gcc_checking_assert (code == SSA_NAME - || code == CONSTRUCTOR - || code == VIEW_CONVERT_EXPR - || CONVERT_EXPR_CODE_P (code)); if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, "Using original scalar computation for " |