Efficient microprocessor design through machine learning