From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A26EA385DC12; Thu, 9 Apr 2020 09:43:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A26EA385DC12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586425424; bh=OrnIUPLVAEMc8ke9C3a17wfpL1OCwbcvvZ/A+obXRMw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HMz5OqgILO4oEBp+tNLL0Bzuq0lgdfwX56qIzzhK401fRpINSJF82yelEVE+G+TWn MEWmJnvBQ8mGlCPO06Y4+At2hXuI1BoqJRxWB58JOUmhYuFp7QlF8PPnTlC3Bezv3R 7UgBBSO0v7JBn62QqCcDHT1RT21pXlPHXFfOKcGs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/91322] [10 regression] g++.dg/lto/alias-4_0.C test failure Date: Thu, 09 Apr 2020 09:43:44 +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: 10.0 X-Bugzilla-Keywords: alias, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc bug_status keywords cf_gcctarget 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: Thu, 09 Apr 2020 09:43:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91322 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[10 regression] alias-4 |[10 regression] |test failure |g++.dg/lto/alias-4_0.C test | |failure Status|WAITING |NEW Keywords| |alias, missed-optimization Target| |arm --- Comment #14 from Richard Biener --- FAIL: g++.dg/lto/alias-4 cp_lto_alias-4_0.o-cp_lto_alias-4_0.o execute -O3 -flto -fno-early-inlining=20 on periodic testing on armv8l-linux-gnueabihf Adjusting summary - we also have gcc.dg/alias-4.c. So we're failing to disambiguate loads against stores here for some reason (we sure need either IPA PTA or TBAA for this to work - it's unclear what's special here about 'arm' - all loads and stores are pointers and there's one aggregate assignment involving struct a, also containing a pointer) # VUSE <.MEM_6(D)> # PT =3D nonlocal escaped null _1 =3D ptrD.5611; # .MEM_7 =3D VDEF <.MEM_6(D)> *_1 =3D 0B; # VUSE <.MEM_7> # PT =3D nonlocal escaped null _10 =3D aptrD.5614; # .MEM_11 =3D VDEF <.MEM_7> *_10 =3D aD.5615; # VUSE <.MEM_11> # PT =3D nonlocal escaped null _2 =3D ptrD.5611; # VUSE <.MEM_11> # PT =3D nonlocal escaped null _3 =3D *_2; _4 =3D _3 =3D=3D 0B; So I'm quite sure the missed optimization isn't a regression? (can somebody quickly check GCC 9 whether the testcase is optimized there on ARM?) Which makes it a testsuite issue to solve for GCC 10, for example by xfail-ing it on affected platforms. The actual issue can probably be simplified quite a bit into a testcase for alias analysis and FRE1.=