Chandler Carruth 602650c988 Add a routine to swap branch instruction operands, and update any
profile metadata at the same time. Use it to preserve metadata attached
to a branch when re-writing it in InstCombine.

Add metadata to the canonicalize_branch InstCombine test, and check that
it is tranformed correctly.

Reviewed by Nick Lewycky!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142168 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 01:11:57 +00:00
..
2011-10-04 18:22:24 +00:00
2011-09-21 03:09:09 +00:00
2011-10-11 22:58:58 +00:00
2011-03-29 04:28:26 +00:00
2010-11-29 18:16:10 +00:00
2011-06-20 14:12:33 +00:00