[clang] [llvm] [profcheck][coro] Adding Branch weights PGO in Coroutines Passes (PR #184466)
Weibo He via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 21 02:06:46 PDT 2026
================
@@ -69,28 +189,13 @@ coro_Suspend: ; preds = %for.cond, %if.then,
}
; Check that the resume function contains the `#dbg_label` instructions.
-; CHECK-LABEL: define ptr @f() #1 !dbg !6 {
-; CHECK: resume.0: ; preds = %resume.entry
-; CHECK-NEXT: #dbg_label(![[RESUME_0:[0-9]+]], !{{[0-9]+}})
-; CHECK: resume.1: ; preds = %resume.entry
-; CHECK-NEXT: #dbg_label(![[RESUME_1:[0-9]+]], !{{[0-9]+}})
; Check that the destroy function contains the `#dbg_label` instructions.
-; CHECK-LABEL: define internal void @f.destroy({{.*}}) #1 !dbg !38 {
-; CHECK: resume.0: ; preds = %resume.entry
-; CHECK-NEXT: #dbg_label(![[DESTROY_0:[0-9]+]], !{{[0-9]+}})
-; CHECK: resume.1: ; preds = %resume.entry
-; CHECK-NEXT: #dbg_label(![[DESTROY_1:[0-9]+]], !{{[0-9]+}})
; Check that the DILabels are correct.
----------------
NewSigma wrote:
These comments are misplaced, and this change doesn't look PGO-related. We can fix the test by just replacing `!38` with `!{{[0-9]+}}` — no need for all these extra lines.
https://github.com/llvm/llvm-project/pull/184466
More information about the cfe-commits
mailing list