[PATCH] D85172: Teach SROA to handle allocas with more than one dbg.declare.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 16:18:19 PDT 2020


aprantl created this revision.
aprantl added reviewers: compnerd, vsk, davide.
aprantl added a project: debug-info.
Herald added subscribers: ormris, hiraditya.
Herald added a project: LLVM.
aprantl requested review of this revision.

It is technically legal for optimizations to create an alloca that is
used by more than one `dbg.declare`, if one or both of them are inlined
instances of aliasing variables.


https://reviews.llvm.org/D85172

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/dbg-inline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85172.282760.patch
Type: text/x-patch
Size: 6897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/7c5d2afd/attachment-0001.bin>


More information about the llvm-commits mailing list