[block-freq] Add a right shift to BlockFrequency that saturates at 1.
authorMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:24:22 +0000 (02:24 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:24:22 +0000 (02:24 +0000)
commit1b98ef1c19082fb49bf6db7b008eec33361e1080
tree2a14da4524f8fd0aa01a5405b03fe23a36dad9d5
parent7cc5f793bc858e4be4fbf532942d14013f123e55
[block-freq] Add a right shift to BlockFrequency that saturates at 1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197302 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/BlockFrequency.h
lib/Support/BlockFrequency.cpp
unittests/Support/BlockFrequencyTest.cpp