aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2023-08-15 01:36:23 -0500
committerKewen Lin <linkw@linux.ibm.com>2023-08-15 01:36:23 -0500
commit9ca0ff5e0988c62fe3080e3f4f99edecac37dff8 (patch)
treeb1cff54c1e3a5d199cbb16cf59a4f406371013e2
parentd5ef0ee307058c5efade84e45228a7576c0141c7 (diff)
downloadgcc-9ca0ff5e0988c62fe3080e3f4f99edecac37dff8.zip
gcc-9ca0ff5e0988c62fe3080e3f4f99edecac37dff8.tar.gz
gcc-9ca0ff5e0988c62fe3080e3f4f99edecac37dff8.tar.bz2
vect: Remove several useless VMAT_INVARIANT checks
In function vectorizable_load, there is one hunk which is dedicated for the handlings on VMAT_INVARIANT and return early, it means we shouldn't encounter any cases with memory_access_type VMAT_INVARIANT in the following code after that. This patch is to clean up several useless checks on VMAT_INVARIANT. There should be no functional changes. gcc/ChangeLog: * tree-vect-stmts.cc (vectorizable_load): Remove some useless checks on VMAT_INVARIANT.
-rw-r--r--gcc/tree-vect-stmts.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 89607a9..d4e7815 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -10499,7 +10499,7 @@ vectorizable_load (vec_info *vinfo,
tree bias = NULL_TREE;
if (!costing_p)
{
- if (loop_masks && memory_access_type != VMAT_INVARIANT)
+ if (loop_masks)
final_mask
= vect_get_loop_mask (loop_vinfo, gsi, loop_masks,
vec_num * ncopies, vectype,
@@ -10729,7 +10729,7 @@ vectorizable_load (vec_info *vinfo,
bias = build_int_cst (intQI_type_node, biasval);
}
- if (final_len && memory_access_type != VMAT_INVARIANT)
+ if (final_len)
{
tree ptr
= build_int_cst (ref_type, align * BITS_PER_UNIT);