davide added a comment. Independently from the style issues, this patch as is is a no-go. Peter tried to extend this work and hit the N^2 pretty badly, so I'm not sure it makes sense to check-in it as is. Repository: rL LLVM https://reviews.llvm.org/D36351