This is an archive of the discontinued LLVM Phabricator instance.

[AST] Pack ArraySubscriptExpr and CallExpr
AbandonedPublic

Authored by riccibruno on Nov 6 2018, 11:48 AM.

Details

Reviewers
rsmith
Summary

Use the newly available space in the bit-fields of Stmt
to store some data from ArraySubscriptExpr and CallExpr.
This saves a pointer for each of them (which is a lot given
how frequently CallExpr is used).

Additionally for ArraySubscriptExpr store a bit indicating
whether the LHS is the base of the array subscript expression,
instead of checking if the type of the RHS is an integer type during
each access. This removes an indirection during each access.

Diff Detail

Repository
rC Clang