ruiu added a comment. I'm personally not too excited about this kind of higher-order function, and my first impression is that the original code is better. I might be convinced either way, but I think I'm mildly against doing this. https://reviews.llvm.org/D45166