Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MC] Move some bool members to MCFragment. NFC
Move `AllowAutoPadding` to MCFragment, which reduce the MCRelaxableFragment size by 8 bytes. While here, also move `AlignToBundleEnd` next to `HasInstructions`. Functions that create fragments are slightly shorter due to fewer byte zeroing instructions. Although fewer in number than MCDataFragments, MCRelaxableFragment objects still constitute a significant proportion warranting optimization. ``` % clang -c sqlite3.i -w -g -Xclang -print-stats ... 2206 assembler - Number of emitted assembler fragments - align 83980 assembler - Number of emitted assembler fragments - data 84 assembler - Number of emitted assembler fragments - fill 169462 assembler - Number of emitted assembler fragments - total 11396 assembler - Number of emitted assembler fragments - relaxable ``` Pull Request: llvm#100976
- Loading branch information