Branch profiling: floating-point avoidance.
authorAndrew Trick <atrick@apple.com>
Sat, 11 Jun 2011 01:05:22 +0000 (01:05 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 11 Jun 2011 01:05:22 +0000 (01:05 +0000)
commitf289df2d9544bd3a0934651daa20e589544413ba
tree7301c85f67fa32083f0ffbfd7908bc79002bd0bd
parentb5923db192d2aa938ff3c12aaac87d80ab649625
Branch profiling: floating-point avoidance.

Patch by: Jakub Staszak!

Introduces BranchProbability. Changes unsigned to uint32_t all over and
uint64_t only when overflow is expected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132867 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
include/llvm/Support/BranchProbability.h [new file with mode: 0644]
lib/Analysis/BranchProbabilityInfo.cpp
lib/Support/BranchProbability.cpp [new file with mode: 0644]
lib/Support/CMakeLists.txt