[SimplifyCFG] Preserve !llvm.mem.parallel_loop_access when merging
authorHal Finkel <hfinkel@anl.gov>
Tue, 26 Apr 2016 02:06:06 +0000 (02:06 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 26 Apr 2016 02:06:06 +0000 (02:06 +0000)
commite4c0c1679b8a20836643cba98773fb1cdfb7afe8
tree980e54fe009bf42976d15b7dc9aad6f017d77cde
parent411d31ad72456ba88c0b0bee0faba2b774add65f
[SimplifyCFG] Preserve !llvm.mem.parallel_loop_access when merging

When SimplifyCFG merges identical instructions from both sides of a diamond, it
can preserve !llvm.mem.parallel_loop_access (as it does with most of the other
metadata). There's no real data or control dependency change in this case.

llvm-svn: 267515
llvm/lib/Transforms/Utils/Local.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/combine-parallel-mem-md.ll [new file with mode: 0644]