Prazek added a comment. Well, actually I have no idea why I made extra review. I forgot that http://reviews.llvm.org/D12992 is not yet upstream. I am closing this review. I will also add test case http://reviews.llvm.org/D13233