Revert "[BPI] Use a safer constructor to calculate branch probabilities"
authorVedant Kumar <vsk@apple.com>
Sat, 17 Dec 2016 00:19:06 +0000 (00:19 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 17 Dec 2016 00:19:06 +0000 (00:19 +0000)
commita8871b73bb130d370c2093340acf950ceabe81f7
treeb779374e0a26496f69fd498dca237501d078aace
parenta5c7efc6d4d6f5b502f49fa2a0f7a6816f89f202
Revert "[BPI] Use a safer constructor to calculate branch probabilities"

This reverts commit r290016. It breaks this bot, even though the test
passes locally:

  http://bb.pgr.jp/builders/ninja-x64-msvc-RA-centos6/builds/32956/

AnalysisTests: /home/bb/ninja-x64-msvc-RA-centos6/llvm-project/llvm/lib/Support/BranchProbability.cpp:52: static llvm::BranchProbability llvm::BranchProbability::getBranchProbability(uint64_t, uint64_t): Assertion `Numerator <= Denominator && "Probability cannot be bigger than 1!"' failed.
llvm-svn: 290019
llvm/lib/Analysis/BranchProbabilityInfo.cpp
llvm/unittests/Analysis/BranchProbabilityInfoTest.cpp [deleted file]
llvm/unittests/Analysis/CMakeLists.txt