Fix PR13851: Preserve metadata for the unswitched branch
authorWeiming Zhao <weimingz@codeaurora.org>
Tue, 23 Jun 2015 05:31:09 +0000 (05:31 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Tue, 23 Jun 2015 05:31:09 +0000 (05:31 +0000)
commitab3926f6e4be72c18473abfdc1454f54841b5dc5
treec4cad61103d06737ba4247fc289d8cf9abaf2f29
parent9e7539a79fc26c5ba892074387fdc22c379816ae
Fix PR13851: Preserve metadata for the unswitched branch

This patch copies the metadata of the unswitched branch to the newly
crreated branch in loop unswitch pass.

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