public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Richard Sandiford <rsandifo@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6594] vect: Fix uninitialised variable PR104026
Date: Fri, 14 Jan 2022 18:41:22 +0000 (GMT)	[thread overview]
Message-ID: <20220114184122.4795D385AC21@sourceware.org> (raw)

https://gcc.gnu.org/g:79ae13067f6afabcbae4784ada07dcbb7f00953e

commit r12-6594-g79ae13067f6afabcbae4784ada07dcbb7f00953e
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Fri Jan 14 18:41:12 2022 +0000

    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.

Diff:
---
 gcc/tree-vect-loop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 1dbdb9e5fa0..f1410b03fb3 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),


                 reply	other threads:[~2022-01-14 18:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220114184122.4795D385AC21@sourceware.org \
    --to=rsandifo@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).