[PATCH] D27114: Preserve nonnull metadata on Loads through SROA & mem2reg.
Luqman Aden via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 21:57:54 PDT 2017
luqmana updated this revision to Diff 92597.
luqmana added a comment.
I added another test for all the relevant codepaths in PromoteMemoryToRegister.
I also addressed one case I missed earlier: when the alloca in question has
multiple stores but all within the same basic block.
https://reviews.llvm.org/D27114
Files:
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
test/Transforms/Mem2Reg/preserve-nonnull-load-metadata.ll
test/Transforms/SROA/preserve-nonnull.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27114.92597.patch
Type: text/x-patch
Size: 11045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170322/7fd7d0a3/attachment.bin>
More information about the llvm-commits
mailing list