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)
commitf1abad57da50a08a594ec67d5c6b5fd066537089
tree0dadba882abd7f274da11f5b397dda45c9e84d94
parentaac108a324dd0478afa349cd756c2a7c4d6e97ea
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.

llvm-svn: 240378
llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
llvm/test/Transforms/LoopUnswitch/2015-06-17-Metadata.ll [new file with mode: 0644]