[all-commits] [llvm/llvm-project] 846e47: [MC] Reduce size of MCDataFragment by 8 bytes (#95...
aengelke via All-commits
all-commits at lists.llvm.org
Thu Jun 13 03:05:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 846e47e7b880bcf6b8f5773fe0fe236d486f3239
https://github.com/llvm/llvm-project/commit/846e47e7b880bcf6b8f5773fe0fe236d486f3239
Author: aengelke <engelke at in.tum.de>
Date: 2024-06-13 (Thu, 13 Jun 2024)
Changed paths:
M llvm/include/llvm/MC/MCFragment.h
M llvm/lib/MC/MCFragment.cpp
Log Message:
-----------
[MC] Reduce size of MCDataFragment by 8 bytes (#95293)
Due to alignment, the first two fields of MCEncodedFragment are
currently at bytes 40 and 41, so 1 byte over the 8 byte boundary,
causing 7 bytes padding to be inserted for the following pointer.
Fold two bools of MCFragment into bitfields to reduce move the two
fields of MCEncodedFragment one byte earlier to remove the padding
bytes. This works, as in the Itanium ABI, there is no padding after
base classes.
This gives a space reduction of MCDataFragment from 224 to 216 bytes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list