[PATCH] D97673: [RFC] [[Coroutine] [Debug] Salvage dbg.values
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 09:50:11 PDT 2021
aprantl added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1274
+ // Replace DbgValueInst manually since replaceUsesOfWith wouldn't work.
+ if (auto *DVI = dyn_cast<DbgValueInst>(U)) {
----------------
// Also update metadata uses in dbg.value intrinsics.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:2252
+ // dbg.value are included in the users of I.
+ // So we need to handle them specially.
+ SmallVector<DbgValueInst *, 16> DVIs;
----------------
// Manually add dbg.value metadata uses of I.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97673/new/
https://reviews.llvm.org/D97673
More information about the llvm-commits
mailing list