Optimizing Compiler Heuristics with Machine Learning