https://github.com/david-xl commented: I think we should move the size/compiletime related logics outside of skipPGO. There is no point annotate PGO (and waste compile time) when instrumentation is skipped. https://github.com/llvm/llvm-project/pull/71106