Towards Practical Machine Learning for Program Analysis and Optimisation