[PATCH] [InstCombine] Properly combine metadata when replacing a load with another

Björn Steinbrink bsteinbr at gmail.com
Mon Jun 22 05:56:56 PDT 2015

Not doing this can lead to misoptimizations down the line, e.g. because
of range metadata on the replacing load excluding values that are valid
for the load that is being replaced.
 .../InstCombine/InstCombineLoadStoreAlloca.cpp        | 12 +++++++++++-
 test/Transforms/InstCombine/load-range-metadata.ll    | 19 +++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 test/Transforms/InstCombine/load-range-metadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-InstCombine-Properly-combine-metadata-when-replacing.patch
Type: text/x-patch
Size: 2115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150622/590f3996/attachment.bin>

More information about the llvm-commits mailing list