scudo: Optimize getSizeLSBByClassId() by compressing the table into an integer if possible. NFCI.
With AndroidSizeClassMap all of the LSBs are in the range 4-6 so we only need 2 bits of information per size class. Furthermore we have 32 size classes, which conveniently lets us fit all of the information into a 64-bit integer. Do so if possible so that we can avoid a table lookup entirely. Differential Revision: https://reviews.llvm.org/D101105
Loading
Please sign in to comment