[PATCH] D157423: [Coroutines][NFC] Only look for Alloca or Load when finding dbg.declare for temp spills
Wei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 00:08:13 PDT 2023
weiwang updated this revision to Diff 548485.
weiwang marked an inline comment as done.
weiwang edited the summary of this revision.
weiwang added a comment.
Apply comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157423/new/
https://reviews.llvm.org/D157423
Files:
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
Index: llvm/lib/Transforms/Coroutines/CoroFrame.cpp
===================================================================
--- llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1865,6 +1865,8 @@
if (LdInst->getPointerOperandType() != LdInst->getType())
break;
CurDef = LdInst->getPointerOperand();
+ if (!isa<AllocaInst, LoadInst>(CurDef))
+ break;
DIs = FindDbgDeclareUses(CurDef);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157423.548485.patch
Type: text/x-patch
Size: 530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230809/2c311744/attachment.bin>
More information about the llvm-commits
mailing list