[PATCH] D27114: Preserve nonnull metadata on Loads through SROA & mem2reg.

Luqman Aden via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 14:23:41 PST 2016


luqmana created this revision.
luqmana added a reviewer: chandlerc.
luqmana added a subscriber: llvm-commits.

https://llvm.org/bugs/show_bug.cgi?id=31142 :

SROA was dropping the nonnull metadata on loads from allocas that got optimized out. This patch simply preserves nonnull metadata on loads through SROA and mem2reg.


https://reviews.llvm.org/D27114

Files:
  lib/Transforms/Scalar/SROA.cpp
  lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  test/Transforms/SROA/preserve-nonnull.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27114.79258.patch
Type: text/x-patch
Size: 3707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161124/4716164e/attachment.bin>


More information about the llvm-commits mailing list