llvm-mirror/unittests/Support
Benjamin Kramer 3315e168ee 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
..
AlignOfTest.cpp [AlignOf] Add AlignedCharArray and refactor AlignedCharArrayUnion. 2012-12-31 19:54:45 +00:00
AllocatorTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
ArrayRecyclerTest.cpp Rename the unittest from ArrayRecylerTest.cpp to ArrayRecyclerTest.cpp. 2013-01-05 02:08:43 +00:00
BlockFrequencyTest.cpp BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability. 2013-06-21 19:30:05 +00:00
Casting.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
CMakeLists.txt Add to testsuite. 2013-05-24 23:20:16 +00:00
CommandLineTest.cpp Implemented public interface for modifying registered (not positional or sink options) command line options at runtime. 2013-05-06 21:56:35 +00:00
CompressionTest.cpp Add more guards around zlib-dependent code 2013-04-23 08:57:30 +00:00
ConstantRangeTest.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
DataExtractorTest.cpp DataExtractor: Fix integer truncation issues in LEB128 extraction. 2012-08-20 10:52:11 +00:00
EndianTest.cpp [Support][Endian] Add support for specifying the alignment and native unaligned types. 2013-01-02 20:14:11 +00:00
ErrorOrTest.cpp [Support][ErrorOr] Add support for implicit conversion from error code/condition enums. 2013-02-28 01:44:26 +00:00
FileOutputBufferTest.cpp Move PathV2.h to Path.h 2013-06-11 22:21:28 +00:00
formatted_raw_ostream_test.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
IntegersSubsetTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
LeakDetectorTest.cpp
Makefile
ManagedStatic.cpp Get the unittests compiling when building with cmake and the setting 2013-05-14 13:29:16 +00:00
MathExtrasTest.cpp [Support] Remove Count{Leading,Trailing}Zeros_{32,64}. 2013-05-24 22:58:37 +00:00
MD5Test.cpp Add support for adding the contents of a StringRef to the MD5 hash. 2013-05-31 22:34:56 +00:00
MemoryBufferTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
MemoryTest.cpp Go ahead and get rid of the old page size interface and convert all the 2012-12-31 23:31:56 +00:00
Path.cpp Rename fs::GetUniqueID to fs::getUniqueID to match the style guide. 2013-06-20 15:06:35 +00:00
ProcessTest.cpp sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman! 2013-06-08 20:29:03 +00:00
ProgramTest.cpp Avoid using PathV1.h in Program.h. 2013-06-13 20:25:38 +00:00
raw_ostream_test.cpp
RegexTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
SwapByteOrderTest.cpp
TimeValue.cpp
ValueHandleTest.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
YAMLIOTest.cpp Replace memcpys by a static_cast and an integral promotion. 2013-01-10 21:21:32 +00:00
YAMLParserTest.cpp Allow using MemoryBuffers with yaml::Stream directly. 2012-11-19 23:21:47 +00:00