diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2020-11-03 11:21:15 -0800 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2020-11-06 09:44:36 -0800 |
commit | c95598904633140275116c3f18ad10be0062eb6d (patch) | |
tree | 6ba87e9386b5f3bae5f182e6081a44f857fb938b /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 20f87d82ed31fff7f11b893d0fef5111295a6cce (diff) | |
download | llvm-c95598904633140275116c3f18ad10be0062eb6d.zip llvm-c95598904633140275116c3f18ad10be0062eb6d.tar.gz llvm-c95598904633140275116c3f18ad10be0062eb6d.tar.bz2 |
[scudo][standalone] Simplify populateFreelist
`populateFreelist` was more complicated that it needed to be. We used
to call to `populateBatches` that would do some internal shuffling and
add pointers one by one to the batches, but ultimately this was not
needed. We can get rid of `populateBatches`, and do processing in
bulk. This doesn't necessarily make things faster as this is not on the
hot path, but it makes the function cleaner.
Additionally clean up a couple of items, like `UNLIKELY`s and setting
`Exhausted` to `false` which can't happen.
Differential Revision: https://reviews.llvm.org/D90700
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions