To add to your comment, here are Russ Cox's comments on why the toolchain is custom and they didn't use LLVM:
I am always torn in such approaches, in one way it means throwing away decades of code optimization.
On the other hand, in a world that devs only believe in stuff when others actually implement it in production, it is nice to see that their toolchain is self sufficient without the usual C or C++ dependency.
Many language designers opt for implementing their toolchains in C or C++ just for mere convinience, and it is ok so.
However it creates the wrong perception among those without compiler development knowledge, that C and C++ are the only way to implement a toolchain.
Seems to me these are orthogonal concerns, LLVM is in C++ but the question I answered was about using LLVM versus implementing a custom toolchain, not implementing a custom toolchain in C++ versus some other language.
Agreed, maybe I expressed myself badly, but that was still kind of my point.
Re:Performance patches in Go 1.11
by MaxBarraclough on Friday June 22, 2018 @10:20AM
(#17374130)
Informative comment, thanks.
I was so sure it used LLVM!
On the one hand, that allows very fast compilation & codegen, on the other hand the optimisations are fairly limited. It also doesn't benefit from improvements done by other users, but doesn't saddle you with their issues[0].
There's also a Go implementation on top of GCC (gccgo), however while it generates high-quality code historically it wasn't really better than gc due to lacking escape analysis (so it did a ton more heap allocations than the reference) and having a lackluster GC.
[0] Rust has had its own LLVM fork for as long as the project has existed, for both fixing issues it hit which haven't yet been fixed upstream and implementing features it needs which have not been or can not be upstreamed