public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "linkw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/110744] [14 regression] gcc.dg/tree-ssa/pr84512.c fails after r14-2267-gb8806f6ffbe72 Date: Thu, 20 Jul 2023 04:22:46 +0000 [thread overview] Message-ID: <bug-110744-4-8ZB20KvMoT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110744-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110744 --- Comment #6 from Kewen Lin <linkw at gcc dot gnu.org> --- The root cause is that the length and bias handling about LEN_STORE in sccvn was missed to be updated, the below diff can fix the failure. diff --git a/gcc/tree-ssa-sccvn.cc b/gcc/tree-ssa-sccvn.cc index 11061a374a2..c0b3ec420c5 100644 --- a/gcc/tree-ssa-sccvn.cc +++ b/gcc/tree-ssa-sccvn.cc @@ -3299,11 +3299,14 @@ vn_reference_lookup_3 (ao_ref *ref, tree vuse, void *data_, return (void *)-1; break; case IFN_LEN_STORE: - len = gimple_call_arg (call, 2); - bias = gimple_call_arg (call, 4); - if (!tree_fits_uhwi_p (len) || !tree_fits_shwi_p (bias)) - return (void *)-1; - break; + { + int len_index = internal_fn_len_index (fn); + len = gimple_call_arg (call, len_index); + bias = gimple_call_arg (call, len_index + 1); + if (!tree_fits_uhwi_p (len) || !tree_fits_shwi_p (bias)) + return (void *) -1; + break; + } default: return (void *)-1; } Fully testing it.
next prev parent reply other threads:[~2023-07-20 4:22 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-19 16:37 [Bug other/110744] New: [14 regression] cc.dg/tree-ssa/pr84512.c " seurer at gcc dot gnu.org 2023-07-19 22:56 ` [Bug other/110744] " juzhe.zhong at rivai dot ai 2023-07-20 2:11 ` pan2.li at intel dot com 2023-07-20 4:04 ` juzhe.zhong at rivai dot ai 2023-07-20 4:16 ` linkw at gcc dot gnu.org 2023-07-20 4:20 ` [Bug other/110744] [14 regression] gcc.dg/tree-ssa/pr84512.c " linkw at gcc dot gnu.org 2023-07-20 4:22 ` linkw at gcc dot gnu.org [this message] 2023-07-20 4:25 ` pan2.li at intel dot com 2023-07-20 9:57 ` rguenth at gcc dot gnu.org 2023-07-21 5:19 ` cvs-commit at gcc dot gnu.org 2023-07-21 5:20 ` [Bug tree-optimization/110744] " linkw at gcc dot gnu.org
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=bug-110744-4-8ZB20KvMoT@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).