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