Optimizing at the IR level