Two Studies in Compiler Optimisations
Summary
An in-depth look at LLVM optimisation passes through two practical case studies: modular increment and endianness conversion. The article explains how InstCombine, DAGCombiner, and CodeGenPrepare transform patterns and why pass order matters, with exercises to experiment with the opt pipeline.