[PATCH] D113520: [SROA] Spill alloca's around non-capturing escapes via calls to allow alloca partitioning/promotion
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 12 07:21:07 PST 2021
lebedev.ri updated this revision to Diff 386845.
lebedev.ri added a comment.
Ok, it turned out that we do need to delete no-longer-used instructions,
the added test would otherwise assert as not being promoteable.
Also, don't perform this fixup if there are no non-escaping uses of alloca.
There is at least one more problem, but i'm not sure what it is yet.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113520/new/
https://reviews.llvm.org/D113520
Files:
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/PhaseOrdering/lifetime-sanitizer.ll
llvm/test/Transforms/SROA/non-capturing-call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113520.386845.patch
Type: text/x-patch
Size: 64268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/2aaba2bf/attachment.bin>
More information about the llvm-commits
mailing list