public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106247] GCC12 warning in Eigen: array subscript is partly outside array bounds Date: Sun, 10 Jul 2022 19:26:27 +0000 [thread overview] Message-ID: <bug-106247-4-Ox4seq9Rxs@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106247-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106247 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- the warning is correct in the sense the load is there in IR, though it looks like it is dead (but only because b and a are unused): array.7_137 = (long unsigned int) &MEM <double[6]> [(void *)&b + 8B]; _139 = array.7_137 >> 3; _140 = -_139; _141 = _140 & 3; first_142 = (long int) _141; _143 = MIN_EXPR <first_142, 2>; _145 = 2 - _143; alignedEnd_148 = _143; goto <bb 4>; [100.00%] <bb 3> [local count: 8655976563]: index.12_166 = (long unsigned int) index_165; _167 = index.12_166 * 8; _168 = &MEM <double[4]> [(void *)&a + 16B] + _167; _171 = &MEM <double[6]> [(void *)&b + 8B] + _167; _172 = *_168; MEM[(double &)_171] = _172; index_173 = index_165 + 1; <bb 4> [local count: 9725816346]: # index_165 = PHI <0(2), index_173(3)> if (_143 > index_165) goto <bb 3>; [89.00%] else goto <bb 6>; [11.00%] <bb 5> [local count: 8655976563]: index.10_152 = (long unsigned int) index_151; _153 = index.10_152 * 8; _154 = &MEM <double[4]> [(void *)&a + 16B] + _153; _155 = MEM[(__m256d_u * {ref-all})_154]; _158 = &MEM <double[6]> [(void *)&b + 8B] + _153; MEM[(__m256d * {ref-all})_158] = _155; index_159 = index_151 + 4; <bb 6> [local count: 9725816346]: # index_151 = PHI <_143(4), index_159(5)> if (alignedEnd_148 > index_151) goto <bb 5>; [89.00%] else goto <bb 8>; [11.00%]
next prev parent reply other threads:[~2022-07-10 19:26 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-10 16:11 [Bug c++/106247] New: " fchelnokov at gmail dot com 2022-07-10 19:18 ` [Bug tree-optimization/106247] " pinskia at gcc dot gnu.org 2022-07-10 19:26 ` pinskia at gcc dot gnu.org [this message] 2022-07-10 19:34 ` fchelnokov at gmail dot com 2022-07-10 19:37 ` pinskia at gcc dot gnu.org 2022-08-02 4:51 ` skunk at iskunk dot org 2022-09-04 6:06 ` mwd at md5i dot com 2022-09-04 6:08 ` mwd at md5i dot com
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-106247-4-Ox4seq9Rxs@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).