This is an archive of the discontinued LLVM Phabricator instance.

Reorder Value and User fields to save 8 bytes of padding on 64-bit
ClosedPublic

Authored by rnk on Jun 9 2014, 12:51 PM.

Diff Detail

Event Timeline

rnk updated this revision to Diff 10246.Jun 9 2014, 12:51 PM
rnk retitled this revision from to Reorder Value and User fields to save 8 bytes of padding on 64-bit.
rnk added reviewers: nlewycky, nicholas.
rnk added a subscriber: Unknown Object (MLST).
rafael accepted this revision.Jun 9 2014, 4:32 PM
rafael added a reviewer: rafael.
rafael added a subscriber: rafael.

The sizes that I am seeing are

patch
64: value=40 use=48
// 32: value=20 use=28

master
64: value=40 use=56
// 32: value=20 use=28

So it is a saving of 8 bytes in Use. Value has the same size. Awesome!

This revision is now accepted and ready to land.Jun 9 2014, 4:32 PM
rnk closed this revision.Jun 9 2014, 4:40 PM
rnk updated this revision to Diff 10253.

Closed by commit rL210501 (authored by @rnk).