From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC0C93891C14; Wed, 21 Apr 2021 08:25:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC0C93891C14 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100171] autovectorizer Date: Wed, 21 Apr 2021 08:25:13 +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: 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 08:25:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100171 --- Comment #3 from Richard Biener --- Compared to the non-self case where we see [local count: 357878152]: _19 =3D MEM [(const value_type &)arg1_3(D)][0]; _20 =3D MEM [(const value_type &)arg2_4(D)][0]; _21 =3D _19 + _20; _26 =3D MEM [(const value_type &)arg1_3(D)][1]; _27 =3D MEM [(const value_type &)arg2_4(D)][1]; _28 =3D _26 + _27; res =3D{v} {CLOBBER}; MEM[(struct value_type *)out_2(D)][0].value._M_elems[0] =3D _21; MEM[(struct value_type *)out_2(D)][0].value._M_elems[1] =3D _28; return; here intermediate optimizations have elided 'res'.=