================
@@ -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);
----------------
NewSigma wrote:
The code comment doesn't seem right. Why would a no-op function have an entry
count of 0 or 1? If it's only for the sake of formality, maybe we should set it
unknown?
https://github.com/llvm/llvm-project/pull/184466
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits