PGO branch weight: update edge weights in SelectionDAGBuilder.
authorManman Ren <manman.ren@gmail.com>
Thu, 30 Jan 2014 00:24:37 +0000 (00:24 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 30 Jan 2014 00:24:37 +0000 (00:24 +0000)
commit0bdaca505861a1a40645b68422ac6bc00297c6ca
tree9015961204832a6e247849002ba48fae41610131
parentea120b6bb52cd796d3879353aeec214599bd9b96
PGO branch weight: update edge weights in SelectionDAGBuilder.

When converting from "or + br" to two branches, or converting from
"and + br" to two branches, we correctly update the edge weights of
the two branches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200431 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
test/CodeGen/X86/MachineBranchProb.ll [new file with mode: 0644]