From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8EF143851C04; Wed, 15 Jul 2020 07:06:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EF143851C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594796784; bh=FDS2+ezty6APKYflL8pjyDnU0tq0n6DKtITwWvu7GWk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oVfMeEulr1Ol/fMS1zvc6wKBX2Ny4Ujs7VXGBmwo+tWjLLdpuDyozJa0wy4HyiDdl rCbHdq8hCLeJFbMK0OaLbfbHSbrgSJfQqmUMPmUTegLwiaXBz18vGpfY0hLrn8P2Ay RN156LkdSAK4LqyQSgZ9nk4S4eI6PnCC8i7rEPDk= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/95622] [11 Regression] force_output flag on a variable prevents optimization / regresses c-c++-common/goacc/kernels-alias-ipa-pta{-2,-4,}.c Date: Wed, 15 Jul 2020 07:06:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: missed-optimization, openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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, 15 Jul 2020 07:06:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95622 --- Comment #7 from Tobias Burnus --- (In reply to Richard Biener from comment #6) > not sure if fixed? Not fixed =E2=80=93 only XFAILed. The issue is that optimizations are not done with "node->force_output". As = in the example in comment 0: "a =3D 0; c =3D a" will become "c[0] =3D 0" without force_output but "c[0] =3D a[0]" with force_output set. As the variable has been already used in the offload-variable table, it can= not be removed for good =E2=80=93 but not using it is fine.=