[llvm] [profcheck][coro] Adding Branch weights PGO in Coroutines Passes (PR #184466)
Chuanqi Xu via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 8 19:13:44 PDT 2026
================
@@ -182,6 +182,8 @@ void Lowerer::lowerCoroNoop(IntrinsicInst *II) {
M.getDataLayout().getProgramAddressSpace(), "__NoopCoro_ResumeDestroy",
&M);
NoopFn->setCallingConv(CallingConv::Fast);
+ // Because this function is a noop, we can set its entry count to 0.
+ NoopFn->setEntryCount(0);
----------------
ChuanqiXu9 wrote:
Why? A function is a noop doesn't mean it won't be called?
https://github.com/llvm/llvm-project/pull/184466
More information about the llvm-commits
mailing list