davide added a comment. That was exactly what we had in mind. The set of optimizations performed by a linker is relatively small compared to the optimizations done by a compiler so I don't think we'll have hard time deciding what we want to put at any given level. Cheers http://reviews.llvm.org/D19705