[PATCH] D146543: [Coroutines] Look for dbg.declare for temp spills
Wei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 15:58:55 PDT 2023
weiwang marked an inline comment as done.
weiwang added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1852
+ auto *CurDef = Def;
+ while (DIs.empty() && isa<LoadInst>(CurDef)) {
+ auto *LdInst = cast<LoadInst>(CurDef);
----------------
ChuanqiXu wrote:
> Let's add a fast check here to avoid fall in loop if the program is not compiled with debug information.
Good catch! Updated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146543/new/
https://reviews.llvm.org/D146543
More information about the llvm-commits
mailing list