bump is always specified, so remove the STMT_VINFO_VECTYPE touching
path.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.
* tree-vect-data-refs.cc (bump_vector_ptr): Remove the
STMT_VINFO_VECTYPE use, bump is always specified.
---
gcc/tree-vect-data-refs.cc | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/gcc/tree-vect-data-refs.cc b/gcc/tree-vect-data-refs.cc
index 1395776599a..e451b72e07e 100644
--- a/gcc/tree-vect-data-refs.cc
+++ b/gcc/tree-vect-data-refs.cc
@@ -5797,8 +5797,7 @@ vect_create_data_ref_ptr (vec_info *vinfo, stmt_vec_info
stmt_info,
to be vector_size.
BSI - location where the new update stmt is to be placed.
STMT_INFO - the original scalar memory-access stmt that is being vectorized.
- BUMP - optional. The offset by which to bump the pointer. If not given,
- the offset is assumed to be vector_size.
+ UPDATE - The offset by which to bump the pointer.
Output: Return NEW_DATAREF_PTR as illustrated above.
@@ -5807,19 +5806,14 @@ vect_create_data_ref_ptr (vec_info *vinfo,
stmt_vec_info stmt_info,
tree
bump_vector_ptr (vec_info *vinfo,
tree dataref_ptr, gimple *ptr_incr, gimple_stmt_iterator *gsi,
- stmt_vec_info stmt_info, tree bump)
+ stmt_vec_info stmt_info, tree update)
{
struct data_reference *dr = STMT_VINFO_DATA_REF (stmt_info);
- tree vectype = STMT_VINFO_VECTYPE (stmt_info);
- tree update = TYPE_SIZE_UNIT (vectype);
gimple *incr_stmt;
ssa_op_iter iter;
use_operand_p use_p;
tree new_dataref_ptr;
- if (bump)
- update = bump;
-
if (TREE_CODE (dataref_ptr) == SSA_NAME)
new_dataref_ptr = copy_ssa_name (dataref_ptr);
else if (is_gimple_min_invariant (dataref_ptr))
--
2.43.0