grimar added a comment. Hi Davide, Change itself looks good for me, but I have few thoughts about possible implementation and prepared a little patch here: http://reviews.llvm.org/D17879. Repository: rL LLVM http://reviews.llvm.org/D17871