[llvm] [profcheck][coro] Adding Branch weights PGO in Coroutines Passes (PR #184466)

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 14 22:53:21 PDT 2026


================
@@ -183,6 +183,10 @@ void Lowerer::lowerCoroNoop(IntrinsicInst *II) {
         FnTy, GlobalValue::LinkageTypes::InternalLinkage,
         M.getDataLayout().getProgramAddressSpace(), "__NoopCoro_ResumeDestroy",
         &M);
+
+    // Because this function is a noop, we can set its entry count to 1.
+    NoopFn->setEntryCount(1);
----------------
ChuanqiXu9 wrote:

Out of curiosity, is this meaningful in practice?  Or is this simply for formalness?

https://github.com/llvm/llvm-project/pull/184466


More information about the llvm-commits mailing list