public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3979] Fix thinko in previous alignment peeling change Date: Thu, 30 Sep 2021 09:24:12 +0000 (GMT) [thread overview] Message-ID: <20210930092412.C26703857C52@sourceware.org> (raw) https://gcc.gnu.org/g:c2dc29c4a54b8d80c4fbd753d65b75f4313ffec3 commit r12-3979-gc2dc29c4a54b8d80c4fbd753d65b75f4313ffec3 Author: Richard Biener <rguenther@suse.de> Date: Thu Sep 30 10:21:36 2021 +0200 Fix thinko in previous alignment peeling change I was mistaken in that npeel is -1 for variable peeling - it is 0. 2021-09-30 Richard Biener <rguenther@suse.de> * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Fix npeel check for variable amount of peeling. Diff: --- gcc/tree-vect-data-refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 1c6fc4a8f0f..bece58df3bf 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -1265,7 +1265,7 @@ vect_update_misalignment_for_peel (dr_vec_info *dr_info, tree vectype = STMT_VINFO_VECTYPE (dr_info->stmt); if (DR_TARGET_ALIGNMENT (dr_info).is_constant (&alignment) && known_alignment_for_access_p (dr_info, vectype) - && npeel != -1) + && npeel != 0) { int misal = dr_info->misalignment; misal += npeel * TREE_INT_CST_LOW (DR_STEP (dr_info->dr));
reply other threads:[~2021-09-30 9:24 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=20210930092412.C26703857C52@sourceware.org \ --to=rguenth@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: linkBe 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).