3 ms·
Does anybody know if there has been some research and experimentation with inlining? It is probably the most important part of an optimizing compiler, and corou
by jnordwick 9y ago
Does anybody know if there has been some research and experimentation with inlining? It is probably the most important part of an optimizing compiler, and coroutines would seem to make that very difficult or impossible.
- lucozade 9y agoI'd recommend looking at the work the LLVM team have done on this. [0] for example and there is a Youtube video from one of the LLVM confs if I recall correctly. In a nutshell they are still researching this but their general approach is to split the coroutine up and devirtualise/inline the parts where they can. [0] https://llvm.org/devmtg/2016-11/Slides/Nishanov-LLVMCoroutines.pdf https://llvm.org/devmtg/2016-11/Slides/Nishanov-LLVMCoroutin...