[PATCH] D34285: [SROA] Be smarter when copying metadata to retyped loads

Ariel Ben-Yehuda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 11:13:14 PDT 2017


arielb1 created this revision.

Use the same code as InstCombine when copying metadata to a retyped load. This makes sure that !nonnull metadata is turned into the equivalent !range metadata when a pointer load is retyped to an integer load (PR32902).


https://reviews.llvm.org/D34285

Files:
  include/llvm/Transforms/Utils/Local.h
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  lib/Transforms/Scalar/SROA.cpp
  lib/Transforms/Utils/Local.cpp
  test/Transforms/SROA/pr32902.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34285.102851.patch
Type: text/x-patch
Size: 12883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170616/c83ff5b0/attachment.bin>


More information about the llvm-commits mailing list