r/ProgrammingLanguages • u/FedericoBruzzone • Jul 01 '26
A Multi-Dimensional, Per-Pass Empirical Study of the LLVM Optimization Pipeline
/r/Compilers/comments/1uky15e/a_multidimensional_perpass_empirical_study_of_the/
8
Upvotes
6
u/ts826848 Jul 01 '26
Perhaps I missed something when skimming the blog post, but doesn't this conclusion rely on an assumption that passes and/or their effects are independent of other passes? My (non-expert) understanding is that the effectiveness of some passes can vary quite a bit depending on prior passes (e.g., canonicalization before loop vectorization/unrolling or range propagation before dead code elimination) despite those earlier passes not necessarily providing much performance benefit in and of themselves. If my understanding is correct, eliminating those seemingly ineffective earlier passes coudl then result in later passes not providing as much performance benefit as they could otherwise.
The particular experimental setup doesn't look like it captures those kinds of interactions, and I feel that data along those lines would be needed before drawing that particular conclusion.
2
u/Someone0321 Jul 02 '26 edited Jul 02 '26
Nice work! I have a very basic question to the paper as I'm not that well-versed in statistics: There is oftentimes emphasis on keeping the 95% confidence interval under 1% of the mean of the metrics; How is that computed and what does this mean for the validity of the measurements?