This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [OG9, committed] Backport GCN expcnt patches
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org,Andrew Stubbs <ams at codesourcery dot com>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 06 Sep 2019 09:42:28 +0200
- Subject: Re: [OG9, committed] Backport GCN expcnt patches
- References: <8dfcafc5-a3b5-e7a9-3fc6-be8ee471e84b@codesourcery.com>
On 5 September 2019 18:07:25 CEST, Andrew Stubbs <ams@codesourcery.com> wrote:
>I just committed the attached patch to the openacc-gcc-9-branch.
+ /* Store that requires input registers are not overwritten by
+ following instruction. */
+ if ((prev_insn->age + nops_rqd) < 1
+ && prev_insn->delayeduse == DELAYEDUSE_YES
+ && ((hard_reg_set_intersect_p
+ (prev_insn->reads, iwrites))))
+ nops_rqd = 1 - prev_insn->age;
Excess braces everywhere, fwiw.