[SROA] Reuse existing lifetime markers if possible
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:21:23 +0000 (02:21 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:21:23 +0000 (02:21 +0000)
commit92694eba933ef4ea0b1b6377809ff266df37d61b
tree99e59935e0a34da0b5e4f5a0bc73e1897b3f1d1e
parente95d1ca1e2e24ffddd10bd890ed18280b8e415a2
[SROA] Reuse existing lifetime markers if possible

Summary:
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.

Reviewers: reames, ssarda, t.p.northover, hfinkel

Subscribers: hiraditya, bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68900

llvm-svn: 374692
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/reuse_lifetime_markers.ll [new file with mode: 0644]