diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2018-05-16 15:13:26 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2018-05-16 15:13:26 +0000 |
commit | 561228b2fa1fa7e638a10a7767df5f6f99ddaa43 (patch) | |
tree | 5c904005f3b3eaf9e29bf1b907cd1afb0caa1fe8 /llvm/lib/Transforms | |
parent | 4ac68a210cefe07b8d630901bcc63887cd1b540c (diff) | |
download | bcm5719-llvm-561228b2fa1fa7e638a10a7767df5f6f99ddaa43.tar.gz bcm5719-llvm-561228b2fa1fa7e638a10a7767df5f6f99ddaa43.zip |
[sanitizer] Minor 32-bit primary improvements
Summary:
For the 32-bit TransferBatch:
- `SetFromArray` callers have bounds `count`, so relax the `CHECK` to `DCHECK`;
- same for `Add`;
- mark `CopyToArray` as `const`;
For the 32-bit Primary:
- `{Dea,A}llocateBatch` are only called from places that check `class_id`,
relax the `CHECK` to `DCHECK`;
- same for `AllocateRegion`;
- remove `GetRegionBeginBySizeClass` that is not used;
- use a local variable for the random shuffle state, so that the compiler can
use a register instead of reading and writing to the `SizeClassInfo` at every
iteration;
For the 32-bit local cache:
- pass the count to drain instead of doing a `Min` everytime which is at times
superfluous.
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D46657
llvm-svn: 332478
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions