https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78808
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The thing is that the pass_dispatcher_calls runs quite late, as late IPA pass, while the OpenMP outlining is done far earlier. So, we'd need some cgraph node bit to represent OpenMP/OpenACC/Cilk+ outlined functions, and in multiple_targets.c look at the cgraph edges from the functions we are cloning, find out what outlined functions from itself it calls and attempt to clone them too, plus adjust the cloned function to use them instead. Though they are actually called indirectly, so probably there aren't any cgraph edges and we'd have to find it through other means.