[InstCombine] Preserve llvm.mem.parallel_loop_access metadata when replacing
authorDorit Nuzman <dorit.nuzman@intel.com>
Sun, 4 Sep 2016 07:49:39 +0000 (07:49 +0000)
committerDorit Nuzman <dorit.nuzman@intel.com>
Sun, 4 Sep 2016 07:49:39 +0000 (07:49 +0000)
commitabd15f69b2957a38bb2f625eec8b21880004ec9e
tree66a2543602e89449ad1d64b5fd374ea647c8b582
parent3301c7eebd4ede04916c95caba153908c66fe3f9
[InstCombine] Preserve llvm.mem.parallel_loop_access metadata when replacing
memcpy with ld/st.

When InstCombine replaces a memcpy with loads+stores it does not copy over the
llvm.mem.parallel_loop_access from the memcpy instruction. This patch fixes
that.

Differential Revision: https://reviews.llvm.org/D23499

llvm-svn: 280617
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/mem-par-metadata-memcpy.ll [new file with mode: 0644]