[block-freq] Teach branch probability how to return the edge weight in between a...
authorMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:24:25 +0000 (02:24 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:24:25 +0000 (02:24 +0000)
commitb68ca3e9c5791db9da07b7767a8ee915a104e99a
treec97eb599ca90aa7b150111b5b020c962d4cb114a
parent1b98ef1c19082fb49bf6db7b008eec33361e1080
[block-freq] Teach branch probability how to return the edge weight in between a BasicBlock and one of its successors.

IMHO At some point BasicBlock should be refactored along the lines of
MachineBasicBlock so that successors/weights are actually embedded within the
block. Now is not that time though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197303 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp