On 03/12/15 01:10, Tom de Vries wrote:
I've managed to reproduce it. The difference between pass and fail is
whether the compiler is configured with or without accelerator.
I'll look into it.
In the configuration with accelerator, the flag node->force_output is on
for foo._omp.fn.
This causes nonlocal_p to be true in ipa_pta_execute, which causes the
optimization to fail.
The flag is decribed as:
...
/* The symbol will be assumed to be used in an invisible way (like
by an toplevel asm statement). */
...
Looks like I have to ignore the force_output flag as well in
ipa_pta_execute for this sort of node.
Thanks,
- Tom