Benjamin Kramer
bfb84d0bd6
Revert "BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability."
...
This reverts commit r184584. Breaks PPC selfhost.
llvm-svn: 184590
2013-06-21 20:20:27 +00:00
Benjamin Kramer
bd0f107929
BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability.
...
Zero is used by BlockFrequencyInfo as a special "don't know" value. It also
causes a sink for frequencies as you can't ever get off a zero frequency with
more multiplies.
This recovers a 10% regression on MultiSource/Benchmarks/7zip. A zero frequency
was propagated into an inner loop causing excessive spilling.
PR16402.
llvm-svn: 184584
2013-06-21 19:30:05 +00:00
Chandler Carruth
130cec21b9
Sort the #include lines for unittest/...
...
llvm-svn: 169250
2012-12-04 10:23:08 +00:00
Benjamin Kramer
a520de10c9
For reasons I can't fathom MSVC supports ULL but not LLU suffixes on long long integer literals.
...
llvm-svn: 158648
2012-06-17 14:53:53 +00:00
Benjamin Kramer
812da49172
Implement comparison operators for BranchProbability in a way that can't overflow INT64_MAX.
...
Add a test case for the edge case that triggers this. Thanks to Chandler for bringing this to my attention.
llvm-svn: 142794
2011-10-24 13:50:56 +00:00
Benjamin Kramer
929f53f65c
Add compare operators to BranchProbability and use it to determine if an edge is hot.
...
llvm-svn: 142751
2011-10-23 11:19:14 +00:00
Jakub Staszak
8a3d4c43b1
Add test cases for BlockFrequency.
...
llvm-svn: 136244
2011-07-27 18:57:40 +00:00