beanz added a comment. According to Tom my other patch addresses his problem (see http://reviews.llvm.org/D13841). Can you please take a look at that patch and see if it addresses what you need as well? http://reviews.llvm.org/D14040