ruiu added a comment. This looks good to me, but do you want to do isTLS in the same patch? This patch itself does not reduce the number of parameters, so I think this patch more sense if you do both at once. http://reviews.llvm.org/D17871