davidxl added a comment. What is the impact to overall compile time (using a large app)? On the other hand, if caching does not increase code complexity too much, it is also fine. Do you have a updated version of the patch? http://reviews.llvm.org/D18622