sanjoy added a comment. Note: this is an RFC patch. At the very least it needs some more tests before it can go in; but I'd like some initial feedback before spending too much time working on a specific approach. http://reviews.llvm.org/D14481