Instead of merely looping optimizations around the optimizer should be smarter about selecting different optimizations to run.
For instance, it could run a gradient descent-like search in the space of optimized programs. Then the compiler optimizations can be guided with a specially crafted score function - either to minimize code size, or maximize performance.
Instead of merely looping optimizations around the optimizer should be smarter about selecting different optimizations to run. For instance, it could run a gradient descent-like search in the space of optimized programs. Then the compiler optimizations can be guided with a specially crafted score function - either to minimize code size, or maximize performance.