pawosm01 added a comment. You're right, this patch smuggles elimination of two dead functions. I've prepared alternative version of this patch which does not do that. Repository: rL LLVM http://reviews.llvm.org/D16929