Skip to content

Commit d57d8f3

Browse files
committed
CodeGen: Reorder MachinePointerInfo fields
This saves a little bit of padding.
1 parent 5123327 commit d57d8f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/MachineMemOperand.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ struct MachinePointerInfo {
4343
/// Offset - This is an offset from the base Value*.
4444
int64_t Offset;
4545

46-
uint8_t StackID;
47-
4846
unsigned AddrSpace = 0;
4947

48+
uint8_t StackID;
49+
5050
explicit MachinePointerInfo(const Value *v, int64_t offset = 0,
5151
uint8_t ID = 0)
5252
: V(v), Offset(offset), StackID(ID) {
@@ -60,8 +60,8 @@ struct MachinePointerInfo {
6060
}
6161

6262
explicit MachinePointerInfo(unsigned AddressSpace = 0, int64_t offset = 0)
63-
: V((const Value *)nullptr), Offset(offset), StackID(0),
64-
AddrSpace(AddressSpace) {}
63+
: V((const Value *)nullptr), Offset(offset), AddrSpace(AddressSpace),
64+
StackID(0) {}
6565

6666
explicit MachinePointerInfo(
6767
PointerUnion<const Value *, const PseudoSourceValue *> v,

0 commit comments

Comments
 (0)