| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Patch from dexonsmith. The call to toInt() was calling compareTo() which
in some cases would call back to toInt(), creating an infinite loop.
Fixed by simplifying the logic in compareTo() to avoid the co-recursion.
llvm-svn: 236326
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The private constructor for ScaledNumber was using uint64_t instead of
DigitsT. This was preventing instantiations of ScaledNumber with
anything other than uint64_t types.
In implementing the tests, I ran into another issue. Operators >>= and
<<= did not have variants for accepting other ScaledNumber as the shift
argument. This is expected by the SCALED_NUMBER_BOP.
It makes no sense to allow shifting a ScaledNumber by another
ScaledNumber, so the patch includes two new templates for shifting
ScaledNumbers.
Reviewers: dexonsmith
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9350
llvm-svn: 236232
|
|
|
|
| |
llvm-svn: 236227
|
|
|
|
|
|
|
|
|
|
|
| |
utils/sort_includes.py.
I clearly haven't done this in a while, so more changed than usual. This
even uncovered a missing include from the InstrProf library that I've
added. No functionality changed here, just mechanical cleanup of the
include order.
llvm-svn: 225974
|
|
|
|
| |
llvm-svn: 212105
|
|
|
|
|
|
| |
Return MaxScale now that it's available.
llvm-svn: 211559
|
|
|
|
| |
llvm-svn: 211553
|
|
|
|
|
|
| |
This will be convenient when extracting `ScaledNumbers::getSum()`.
llvm-svn: 211552
|
|
|
|
| |
llvm-svn: 211531
|
|
|
|
| |
llvm-svn: 211521
|
|
|
|
| |
llvm-svn: 211507
|
|
|
|
| |
llvm-svn: 211414
|
|
|
|
| |
llvm-svn: 211413
|
|
|
|
| |
llvm-svn: 211409
|
|
|
|
|
|
| |
This convinces clang-format to leave a newline.
llvm-svn: 211406
|
|
|
|
| |
llvm-svn: 211337
|
|
|
|
| |
llvm-svn: 211336
|
|
Start extracting helper functions out of -block-freq's `UnsignedFloat`
into `Support/ScaledNumber.h` with the eventual goal of moving and
renaming the class to `ScaledNumber`.
The bike shed about names is still being painted, but I'm going with
this for now.
llvm-svn: 211333
|