-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[NFC] Pack MDNodeKeyImpl<DILocation> from 40 to 32 bytes #143891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-llvm-ir Author: Orlando Cazalet-Hyams (OCHyams) ChangesFull diff: https://github.com/llvm/llvm-project/pull/143891.diff 1 Files Affected:
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 87cd52e357be2..ef279721b9643 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -310,36 +310,33 @@ template <> struct MDNodeKeyImpl<MDTuple> : MDNodeOpsKey {
/// DenseMapInfo for DILocation.
template <> struct MDNodeKeyImpl<DILocation> {
- unsigned Line;
- uint16_t Column;
Metadata *Scope;
Metadata *InlinedAt;
- bool ImplicitCode;
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
uint64_t AtomGroup : 61;
uint64_t AtomRank : 3;
#endif
+ unsigned Line;
+ uint16_t Column;
+ bool ImplicitCode;
MDNodeKeyImpl(unsigned Line, uint16_t Column, Metadata *Scope,
Metadata *InlinedAt, bool ImplicitCode, uint64_t AtomGroup,
uint8_t AtomRank)
- : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt),
- ImplicitCode(ImplicitCode)
+ : Scope(Scope), InlinedAt(InlinedAt),
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
- ,
- AtomGroup(AtomGroup), AtomRank(AtomRank)
+ AtomGroup(AtomGroup), AtomRank(AtomRank),
#endif
- {
+ Line(Line), Column(Column), ImplicitCode(ImplicitCode) {
}
MDNodeKeyImpl(const DILocation *L)
- : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
- InlinedAt(L->getRawInlinedAt()), ImplicitCode(L->isImplicitCode())
+ : Scope(L->getRawScope()), InlinedAt(L->getRawInlinedAt()),
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
- ,
- AtomGroup(L->getAtomGroup()), AtomRank(L->getAtomRank())
+ AtomGroup(L->getAtomGroup()), AtomRank(L->getAtomRank()),
#endif
- {
+ Line(L->getLine()), Column(L->getColumn()),
+ ImplicitCode(L->isImplicitCode()) {
}
bool isKeyOf(const DILocation *RHS) const {
|
|
32->24 without KeyInstructions support. I don't think this massively affects anything, so can discard if it's just churn. Feels like it couldn't hurt though? Noticed while prodding around in the area. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/7269 Here is the relevant piece of the build log for the reference |
No description provided.