From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F3BE385E44C; Wed, 21 Apr 2021 06:58:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F3BE385E44C From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100171] autovectorizer Date: Wed, 21 Apr 2021 06:58:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: alias, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 06:58:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100171 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Well, the issue is that we end up with (for the simplest case): [local count: 357878152]: _15 =3D MEM [(const value_type &)arg_3(D)][0]; _16 =3D MEM [(value_type &)out_2(D)][0]; _17 =3D _15 + _16; MEM [(value_type &)out_2(D)][0] =3D _17; _22 =3D MEM [(const value_type &)arg_3(D)][1]; _23 =3D MEM [(value_type &)out_2(D)][1]; _24 =3D _22 + _23; MEM [(value_type &)out_2(D)][1] =3D _24; return; and the first store into out[0] can end up writing to arg[1]. I don't see what we can easily do here. Path based disambiguation could maybe argue that partial overlaps of value_type are not allowed.=