[PATCH] D140166: [IR] return nullptr in Instruction::getInsertionPointAfterDef for CallBrInst
Chuanqi Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 17:44:57 PST 2022
ChuanqiXu added inline comments.
================
Comment at: llvm/test/Transforms/Coroutines/coro-debug.ll:196-198
+; CHECK-NEXT: %1 = load i8*, i8** %coro_hdl.reload.addr
+; CHECK-NEXT: call void @free(i8* %1)
; CHECK-NEXT: call void @llvm.dbg.declare(metadata i32 %[[CALLBR_RES]]
----------------
nickdesaulniers wrote:
> ChuanqiXu wrote:
> > We don't care about the inserted checks in the test. It should be fine to check the `llvm.dbg.declare` is in the basic block of `DEFAULT_DEST`. So maybe we can check these 2 lines are not empty or we can check there is no new BB declaration before `llvm.dbg.declare`.
> I'm not sure how best to express that to FileCheck.
>
> `; CHECK-NEXT-NOT: {{.*}}:`
>
> ?
I feel it is a good way to check there is no new BB declaration before `llvm.dbg.declare`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140166/new/
https://reviews.llvm.org/D140166
More information about the llvm-commits
mailing list