davidxl added inline comments. ================ Comment at: lib/Passes/PassBuilder.cpp:365 + if (!isOptimizingForSize(Level)) + FPM.addPass(PGOMemOPSizeOpt()); ---------------- check PGOOpt && !PGOOpt->ProfileUseFile.empty() https://reviews.llvm.org/D39145