I'm generally dubious about having machine learning do everything (you put shit in and shit's what you'll get out) but one place where that could be really useful is a compiler/code-optimiser that just attempts to produce a faster but otherwise identical version of the input code