CodeGen: Reorder MachinePointerInfo fields

This saves a little bit of padding.
This commit is contained in:
Matt Arsenault 2021-03-14 09:45:36 -04:00
parent 5123327eda
commit d57d8f364f
1 changed files with 4 additions and 4 deletions

View File

@ -43,10 +43,10 @@ struct MachinePointerInfo {
/// Offset - This is an offset from the base Value*.
int64_t Offset;
uint8_t StackID;
unsigned AddrSpace = 0;
uint8_t StackID;
explicit MachinePointerInfo(const Value *v, int64_t offset = 0,
uint8_t ID = 0)
: V(v), Offset(offset), StackID(ID) {
@ -60,8 +60,8 @@ struct MachinePointerInfo {
}
explicit MachinePointerInfo(unsigned AddressSpace = 0, int64_t offset = 0)
: V((const Value *)nullptr), Offset(offset), StackID(0),
AddrSpace(AddressSpace) {}
: V((const Value *)nullptr), Offset(offset), AddrSpace(AddressSpace),
StackID(0) {}
explicit MachinePointerInfo(
PointerUnion<const Value *, const PseudoSourceValue *> v,