This is an archive of the discontinued LLVM Phabricator instance.

[AST] Store the results in OverloadExpr in a trailing array
ClosedPublic

Authored by riccibruno on Jan 6 2019, 3:06 PM.

Details

Summary

Use the newly available space in the bit-fields of Stmt to pack
OverloadExpr, UnresolvedLookupExpr and UnresolvedMemberExpr.

Additionally store the results in the overload set in a trailing array.
This saves 1 pointer + 8 bytes per UnresolvedLookupExpr and UnresolvedMemberExpr.

Diff Detail

Repository
rL LLVM

Event Timeline

riccibruno created this revision.Jan 6 2019, 3:06 PM
rjmccall accepted this revision.Jan 7 2019, 12:08 AM

LGTM.

This revision is now accepted and ready to land.Jan 7 2019, 12:08 AM
This revision was automatically updated to reflect the committed changes.