Update the branch weight metadata when reversing the order of a branch.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 26 Dec 2011 20:54:14 +0000 (20:54 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 26 Dec 2011 20:54:14 +0000 (20:54 +0000)
commitc9a1aed7fefe627820bb92154361ede0568229fc
tree253b387a45f33afd6b1dbc6ca57dcb3bce09cf97
parent9d5231022283ff20b0291eb5711a449de262d3fe
Update the branch weight metadata when reversing the order of a branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147280 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/preserve-branchweights.ll [new file with mode: 0644]