The code generation is exactly the same as it was.
But note that the special handling of untied tasks is still handled by emitUntiedSwitch in clang.
Differential D69828
[OpenMP] Lower taskwait using OpenMP IR Builder rogfer01 on Nov 4 2019, 3:18 PM. Authored by
Details The code generation is exactly the same as it was. But note that the special handling of untied tasks is still handled by emitUntiedSwitch in clang.
Diff Detail Event TimelineComment Actions
FWIW, calling getThreadID(getIdent(SrcLocStr)) is the right thing to do here. We do use a cache in that method and at the end of the optimization pipeline, after inlining, etc. we can replace/merge omp_get_thread_id, __kmpc_global_thread_num, and global_tid arguments as a separate (more powerful) step.
Comment Actions
FWIW, We will just clean up in a later pass (under review). We have to do that anyway, adding some smarts here is barely worth it and I also removed similar logic from my patches. Comment Actions Sure. I actually forgot to update the summary because you already mentioned this IIRC.
Comment Actions ChangeLog:
|
This is to preserve exactly the same behaviour as before.