lenykholodov added a comment. Hi guys, I have updated http://reviews.llvm.org/D18216 patch with ideas from http://reviews.llvm.org/D14022. I would be highly appreciated if you have time to review it. http://reviews.llvm.org/D14022