[PATCH] D68900: [SROA] Reuse existing lifetime markers if possible

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 17:01:02 PDT 2019


jdoerfert created this revision.
jdoerfert added reviewers: reames, ssarda, t.p.northover, hfinkel.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.

If the underlying alloca did not change, we do not necessarily need new
lifetime markers. This patch adds a check and reuses the old ones if
possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68900

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/reuse_lifetime_markers.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68900.224713.patch
Type: text/x-patch
Size: 4740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191012/57c330a9/attachment.bin>


More information about the llvm-commits mailing list