Make 'ipo optimizing' logic pluggable.
Add some plugins for ipo optimization.
Add tests for them.