aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2022-01-14 18:41:12 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2022-01-14 18:41:12 +0000
commit79ae13067f6afabcbae4784ada07dcbb7f00953e (patch)
treee4173f6347c4d8f6081a3939be33000f74eccbac
parenta4a8ae123cd70188e4b4bf5e288a84e0a76fb0fd (diff)
downloadgcc-79ae13067f6afabcbae4784ada07dcbb7f00953e.zip
gcc-79ae13067f6afabcbae4784ada07dcbb7f00953e.tar.gz
gcc-79ae13067f6afabcbae4784ada07dcbb7f00953e.tar.bz2
vect: Fix uninitialised variable PR104026
As noted by Tobias in the PR, the loop_vec_info constructor wasn't initializing the new partial_load_store_bias field. gcc/ PR middle-end/104026 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize partial_load_store_bias.
-rw-r--r--gcc/tree-vect-loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 1dbdb9e..f1410b0 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -846,6 +846,7 @@ _loop_vec_info::_loop_vec_info (class loop *loop_in, vec_info_shared *shared)
can_use_partial_vectors_p (param_vect_partial_vector_usage != 0),
using_partial_vectors_p (false),
epil_using_partial_vectors_p (false),
+ partial_load_store_bias (0),
peeling_for_gaps (false),
peeling_for_niter (false),
no_data_dependencies (false),