Everything About ___
Live briefing

Everything about Superoptimization

Compiler optimization technique

Superoptimization is the process where a compiler automatically finds the optimal sequence for a loop-free sequence of instructions. Real-world compilers generally cannot produce genuinely optimal code, and while most standard compiler optimizations only improve code partly, a superoptimizer's goal is to find the optimal sequence, the canonical form. Superoptimizers can be used to improve conventional optimizers by highlighting missed opportunities so a human can write additional rules. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: SuperoptimizationA 5-minute orientation
  2. Skim a recent paper: Neural-guided superoptimization in ethereumInfluential work since 2022
  3. Pick up a classic book: Research in Public Policy Analysis and ManagementThe most-reprinted book on the subject
  4. Read the landmark paper: Stochastic superoptimizationCited 53 times
  5. Go sideways: Binary translationA closely related topic
  6. Go sideways: CraneliftA closely related topic

📖 Definitions

Noun A form of peephole optimization that typically uses an exhaustive brute-force search across all possible sequences of machine instructions.

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics