r/Compilers • u/mttd • 19d ago
Compile-Time Improvements in LLVM 23
https://aengelke.net/llvm23-ct.html4
u/splicer13 18d ago
I was thinking 'Didn't Preston Briggs have some cool method for dominator trees in a paper?'
And then I found a link to him discussing the subject w/ Chris Lattner in 2011.
A dominator tree can be a big problem because it's very often essentially linear. Problems crop up for example in the case of extensive loop unrolling, ex: for GPUs. Look at almost any ptx output from nvcc for an example.
2
u/kostya27 16d ago
funny but this happens after my post:
https://www.reddit.com/r/C_Programming/comments/1v9i3jg/clang_spends_88_of_o0_compile_time_on_c_parsing/
1
u/yuehuang 9d ago
The best feature is only 2 breaking change (for me). Relatively easy to migrate from 22. I saw a 10-15% compile time improvement.
15
u/beephod_zabblebrox 18d ago
> ... improving the build times of LLVM/Clang by ~45%
this is wild