Chandler Carruth 9c33ff8a8b 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!

llvm-svn: 142168
2011-10-17 01:11:57 +00:00
..
2011-10-15 19:36:45 +00:00
2011-09-29 21:43:01 +00:00
2011-10-07 18:25:05 +00:00
2011-08-17 19:33:27 +00:00
2011-08-25 20:18:22 +00:00
2010-12-07 18:50:33 +00:00
2011-06-01 23:32:40 +00:00
2011-04-28 09:12:47 +00:00
2011-08-11 00:22:48 +00:00
2010-11-29 18:16:10 +00:00