diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2020-02-03 15:35:35 -0800 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2020-02-04 09:32:27 -0800 |
commit | f7de7084f4a2c346b3db87c26fa519db0781a09a (patch) | |
tree | 88a96a515525289e7ec8e6d83fc01d2956d3d979 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 9271cab270a52b5200ef45a16f1a9d9baaccaba0 (diff) | |
download | llvm-f7de7084f4a2c346b3db87c26fa519db0781a09a.zip llvm-f7de7084f4a2c346b3db87c26fa519db0781a09a.tar.gz llvm-f7de7084f4a2c346b3db87c26fa519db0781a09a.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions