davidxl added a comment. My concern is that static prediction can certainly get it wrong leading to performance regression. I suggest only check this when real profile data is available. http://reviews.llvm.org/D19950