Using -time-passes in LTO with splitting

Hi,

(re-sent to the correct llvm-dev)
Timing is definitively an issue in multithreaded mode (I think it is a known issue, but we may not have a PR opened yet). “Someone” needs to reimplement it I guess…
I just hasn’t been a high priority for anyone I think (and it won’t be for me in the next couple of months at least, but I’ll be happy to help on thinking about it and/or reviewing patches).

About your comment on TSan, note that there are already some locks (for example in getNamedRegionTimer()). I wonder if the problem is about race condition or the way the timing are computed.

Mehdi,

Thank you for the explanation/confirmation. At this juncture timing in multithreaded mode is not the top issue for us as well, but at least I realize now that there is a general need for it, so if we can allocate any time on it I will bring it up for public discussion first.

Thank you again.

Sergei