- Mar 30, 2011
-
-
Jakob Stoklund Olesen authored
Rehash but don't grow when full of tombstones. Patch by José Fonseca! llvm-svn: 128565
-
Benjamin Kramer authored
Avoid turning a floating point division with a constant power of two into a denormal multiplication. Some platforms may treat denormals as zero, on other platforms multiplication with a subnormal is slower than dividing by a normal. llvm-svn: 128555
-
Benjamin Kramer authored
The idea is, that if an ieee 754 float is divided by a power of two, we can turn the division into a cheaper multiplication. This function sees if we can get an exact multiplicative inverse for a divisor and returns it if possible. This is the hard part of PR9587. I tested many inputs against llvm-gcc's frotend implementation of this optimization and didn't find any difference. However, floating point is the land of weird edge cases, so any review would be appreciated. llvm-svn: 128545
-
- Mar 27, 2011
-
-
Frits van Bommel authored
Constant folding support for calls to umul.with.overflow(), basically identical to the smul.with.overflow() code. llvm-svn: 128379
-
- Mar 24, 2011
-
-
Andrew Trick authored
llvm-svn: 128218
-
Michael J. Spencer authored
llvm-svn: 128199
-
- Mar 22, 2011
-
-
Rafael Espindola authored
llvm-svn: 128098
-
Ted Kremenek authored
Properly initialize all fields in CrashReporterCleanupContext. This caused the buildbot failure earlier. llvm-svn: 128071
-
Ted Kremenek authored
Temporarily stop recovering resources in CrashRecoveryContext while I investigate further why this works on my machine and not on others. llvm-svn: 128065
-
- Mar 21, 2011
-
-
Ted Kremenek authored
Provide a means for CrashRecovery clients to determine if code is currently running while crash recovery cleanups are being processed. llvm-svn: 128008
-
- Mar 20, 2011
-
-
Benjamin Kramer authored
- glibc falls back to fork+exec if a file actions object is present. - On BSDs this saves a malloc. llvm-svn: 127969
-
- Mar 19, 2011
-
-
Ted Kremenek authored
Tweak CrashRecoveryContextCleanup to provide an easy method for clients to select between 'delete' and 'destructor' cleanups, and allow the destructor of CrashRecoveryContextCleanupRegister to be pseudo re-entrant. llvm-svn: 127929
-
Ted Kremenek authored
Tweak CrashRecoveryContext::GetCurrent() to return quickly if 'gCrsahRecoveryEnabled' is false. This avoids us needing to go to thread local storage for the performance sensitive case where we are compiling code. llvm-svn: 127928
-
- Mar 18, 2011
-
-
Jim Grosbach authored
llvm-svn: 127891
-
NAKAMURA Takumi authored
On MSVCRT and compatible, output of %e is incompatible to Posix by default. Number of exponent digits should be at least 2. "%+03d" FIXME: Implement our formatter in future! llvm-svn: 127872
-
Bill Wendling authored
makes valgrind stop complaining about uninitialized variables being read when it accesses a bitfield (category) that shares its bits with these variables. llvm-svn: 127871
-
Rafael Espindola authored
llvm-svn: 127853
-
Ted Kremenek authored
Augment CrashRecoveryContext to have registered "cleanup" objects that can be used to release resources during a crash. llvm-svn: 127849
-
- Mar 17, 2011
-
-
Rafael Espindola authored
instead of copying. llvm-svn: 127835
-
Benjamin Kramer authored
Add an argument to APInt's magic udiv calculation to specify the number of bits that are known zero in the divided number. This will come in handy soon. llvm-svn: 127828
-
- Mar 16, 2011
-
-
NAKAMURA Takumi authored
report_fatal_error() invokes exit(). We know report_fatal_error() might not write messages to stderr when any errors were detected on FD == 2. llvm-svn: 127726
-
NAKAMURA Takumi authored
FIXME: It is a temporal hack. We should detect as many "special file name" as possible. llvm-svn: 127724
-
NAKAMURA Takumi authored
FIXME: We should use sys::fs::unique_file() in future. llvm-svn: 127723
-
- Mar 15, 2011
-
-
John Thompson authored
llvm-svn: 127705
-
- Mar 10, 2011
-
-
Rafael Espindola authored
llvm-svn: 127426
-
Rafael Espindola authored
llvm-svn: 127417
-
Rafael Espindola authored
llvm-svn: 127416
-
Jakob Stoklund Olesen authored
llvm-svn: 127413
-
Rafael Espindola authored
support for creating buffers that cover only a part of a file. llvm-svn: 127409
-
- Mar 08, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 127241
-
- Mar 07, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 127140
-
- Mar 04, 2011
-
-
Benjamin Kramer authored
inefficient file system buffering if the writes are not a multiple of the desired buffer size. Avoid this by limiting the large write to a multiple of the buffer size and copying the remainder into the buffer. Thanks to Dan for pointing this out. llvm-svn: 127026
-
Benjamin Kramer authored
raw_ostream: If writing a string that is larger than the buffer, write it directly instead of doing many buffer-sized writes. This caps the number of write(2) calls per string to a maximum of 2. llvm-svn: 127010
-
- Feb 27, 2011
-
-
Daniel Dunbar authored
llvm-svn: 126558
-
- Feb 21, 2011
-
-
Cameron Zwarich authored
of a constant had a minor typo introduced when copying it from the book, which caused it to favor negative approximations over positive approximations in many cases. Positive approximations require fewer operations beyond the multiplication. In the case of division by 3, we still generate code that is a single instruction larger than GCC's code. llvm-svn: 126097
-
- Feb 19, 2011
-
-
Devang Patel authored
llvm-svn: 125986
-
- Feb 18, 2011
-
-
Chris Lattner authored
llvm-svn: 125943
-
Argyrios Kyrtzidis authored
llvm-svn: 125804
-
- Feb 17, 2011
-
-
Nadav Rotem authored
Add getAllOnesValue of FP numbers to Constants and APFloat. Add more tests. llvm-svn: 125776
-
NAKAMURA Takumi authored
No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. In llvm side, i686 and x64 can be treated as similar way. llvm-svn: 125747
-