commit | 498babbf1367b6558002cb23b1ff5993a65c76b3 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Mon Feb 03 15:35:35 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Aug 27 23:56:47 2020 -0700 |
tree | e34f0277a7ddf3cd07798f223021eaad053e7614 | |
parent | b8b13a6babfa464de0946c6beed3c152717bcb51 [diff] |
scudo: Simplify getClassIdBySize() logic. NFCI. By subtracting 1 from Size at the beginning we can simplify the subsequent calculations. This also saves 4 instructions on aarch64 and 9 instructions on x86_64, but seems to be perf neutral. Differential Revision: https://reviews.llvm.org/D73936 GitOrigin-RevId: f7de7084f4a2c346b3db87c26fa519db0781a09a