From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4E25385801D; Mon, 22 Mar 2021 11:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4E25385801D From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/90591] Avoid unnecessary data transfer out of OMP construct Date: Mon, 22 Mar 2021 11:37:37 +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: openacc, openmp X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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: Mon, 22 Mar 2021 11:37:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D90591 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|sandra at gcc dot gnu.org |tschwinge at gcc do= t gnu.org --- Comment #6 from Thomas Schwinge --- (In reply to Richard Biener from comment #3) > I think while relying on a robust IPA analysis and optimization framework > sounds appealing the problem is _much_ easier solved before OMP/OACC > lowering and I would strongly suggest to tackle the problem from that side > if you want a > workable solution in a timely manner. ACK. WIP: . > I realize that has a plethora of its own issues, first of all it seems > the respective lowering is done _very_ early - aka the optimization would > need to be part of omplower? (I see .omp_data_i constructed there) >=20 > So what you need is liveness and def/use analysis on high GIMPLE which I > think is straight-forward enough. You have no SSA form at your hands > (actually SSA names can appear and there'll be use->def links but > no immediate uses).=