This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4] Redesign oacc_parallel launch API
- From: Nathan Sidwell <nathan at acm dot org>
- To: Cesar Philippidis <cesar_philippidis at mentor dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Thomas Schwinge <THOMAS_SCHWINGE at mentor dot com>
- Date: Thu, 6 Aug 2015 21:51:20 +0200
- Subject: Re: [gomp4] Redesign oacc_parallel launch API
- Authentication-results: sourceware.org; auth=none
- References: <55B7B332 dot 1010603 at acm dot org> <55C38C5D dot 6040602 at mentor dot com>
On 08/06/15 18:33, Cesar Philippidis wrote:
Looking at set_oacc_fn_attrib, it appears that const values are also
considered dynamic. See the attached test case more more info. Is that
the expected behavior? If not, I could take a look at this after I
finished my reduction patch.
It's annoying that the offload call is happening too early for that kind of
constant propagation. But I guess it might have been propagated by the time we
get to oacc_xform. And hence that could optimize there.
Anyway, a thing to notice but not get distracted by.
nathan