[LoopUnswitch] Preserve make.implicit metadata for unswitched conditions
authorChen Li <meloli87@gmail.com>
Wed, 5 Aug 2015 21:13:26 +0000 (21:13 +0000)
committerChen Li <meloli87@gmail.com>
Wed, 5 Aug 2015 21:13:26 +0000 (21:13 +0000)
commit452b1451b34a33c0ec4103e1e2fcac7057493cf2
tree574dc45410e5cf76e7856b2627a80eedfe513257
parenta588f3f3d12360aec78f3411aad6d91971e84d0c
[LoopUnswitch] Preserve make.implicit metadata for unswitched conditions

Summary: This patch adds support to preserve make.implicit metadata for unswitched conditions in loop pre-header.

Reviewers: sanjoy, weimingz

Subscribers: mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D11769

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244132 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
test/Transforms/LoopUnswitch/copy-metadata.ll [new file with mode: 0644]