davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. Yeah, this is much more in line with what I had in mind than the original patch. Thanks for taking care of this! https://reviews.llvm.org/D50533