aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/BlockFrequency.cpp
AgeCommit message (Expand)AuthorFilesLines
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
2017-12-13Remove redundant includes from lib/Support.Michael Zolotukhin1-1/+0
2015-10-12Add - and -= operators to BlockFrequency using saturating arithmetic.Cong Hou1-0/+15
2015-10-12Turn const/const& into value type for BlockFrequency in functions of this cla...Cong Hou1-8/+6
2015-09-11Fixed a bug that BranchProbability is not defined in BlockFrequency.cpp. NFC.Cong Hou1-1/+0
2015-09-10Pass BranchProbability/BlockMass by value instead of const& as they are small...Cong Hou1-4/+4
2014-04-29blockfreq: Defer to BranchProbability::scale() (again)Duncan P. N. Exon Smith1-93/+2
2013-12-14[block-freq] Add a right shift to BlockFrequency that saturates at 1.Michael Gottesman1-0/+12
2013-12-14[block-freq] Remove old BlockFrequency entry frequency and printing code.Michael Gottesman1-21/+0
2013-11-17[block-freq] Add BlockFrequency::scale that returns a remainder from the divi...Michael Gottesman1-38/+60
2013-06-28Fix a bad overflow check pointed out by Ben.Jakob Stoklund Olesen1-4/+2
2013-06-28Eliminate an assortment of undefined behavior.Jakob Stoklund Olesen1-1/+5
2013-06-28Stylistic cleanups, no functional change.Jakob Stoklund Olesen1-10/+7
2013-06-28Add a division operator to BlockFrequency.Jakob Stoklund Olesen1-23/+35
2013-06-25Print block frequencies in decimal form.Jakob Stoklund Olesen1-1/+10
2013-06-21Revert "BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequen...Benjamin Kramer1-10/+2
2013-06-21BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with ...Benjamin Kramer1-2/+10
2011-10-27BlockFrequency: Use a smarter overflow check.Benjamin Kramer1-4/+8
2011-07-27Optimize 96-bit division a little bit.Jakub Staszak1-2/+3
2011-07-27Move static methods to the anonymous namespace.Jakub Staszak1-2/+7
2011-07-25Add BlockFrequency class.Jakub Staszak1-0/+120