Manman Ren 1123614317 Reverse order of the two branches at end of a basic block if it is profitable.
We branch to the successor with higher edge weight first.
Convert from
     je    LBB4_8  --> to outer loop
     jmp   LBB4_14 --> to inner loop
to
     jne   LBB4_14
     jmp   LBB4_8

PR12750
rdar: 11393714


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161018 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-31 01:11:07 +00:00
..
2012-07-16 19:35:43 +00:00
2012-05-19 23:34:59 +00:00
2012-03-20 17:20:46 +00:00
2012-07-23 08:51:15 +00:00
2012-06-19 02:17:35 +00:00
2012-05-24 22:08:29 +00:00
2012-04-20 23:36:09 +00:00
2012-07-17 19:40:05 +00:00
2012-06-01 05:00:54 +00:00
2012-03-30 00:26:54 +00:00