Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A collection of compiler optimizations with brief descriptions and examples (compileroptimizations.com)
27 points by danny00 on May 6, 2024 | hide | past | favorite | 4 comments


Optimizing compiler > Types of optimizations, Specific techniques: https://en.wikipedia.org/wiki/Optimizing_compiler

Category:Compiler optimizations: https://en.wikipedia.org/wiki/Category:Compiler_optimization...

"LLVM’s Analysis and Transform Passes" -print-passes : https://llvm.org/docs/Passes.html

"A whirlwind tour of the LLVM optimizer" mentions Chrome and ART and LLVM: https://news.ycombinator.com/item?id=35893006

FreeBSD has docs in a man page on clang's optimization levels -O1/-O2/-O3: https://stackoverflow.com/questions/21447377/meaning-of-the-...

Also, only SO has what specific optimizations are applied for clang's -O1/-O2/-03 args? https://stackoverflow.com/questions/15548023/clang-optimizat...


What about quantum compilers and quantum embedding of classical data; what are the algorithmic advantages listed at Quantum Algorithm Zoo for $5m? Qubit operations are described as rotations on a bloch sphere; the unit circle with a complex coordinate z to make a sphere, but are also representable as matrix (tensor) transformations. https://news.ycombinator.com/item?id=39637175

Compiler optimization improvements are also incentivized by costed opcodes in e.g. smart contracts.


Missing one of my favorites, scalar replacement of aggregates, which is done very early in the LLVM flow.


That's really cool! thank you for sharing this




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: