davidxl added inline comments. ================ Comment at: lib/Transforms/Instrumentation/PGOInstrumentation.cpp:1485 continue; + if (AllZeros) { + if (Func.getProgramMaxCount() != 0) ---------------- Is function entry annotated ? https://reviews.llvm.org/D54212