[PATCH] D54321: [AST] Store the expressions in ParenListExpr in a trailing array
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 9 08:38:24 PST 2018
riccibruno created this revision.
riccibruno added a reviewer: rsmith.
riccibruno added a project: clang.
Herald added a reviewer: shafik.
Herald added a subscriber: cfe-commits.
Use the newly available space in the bit-fields of `Stmt`, and store
the expressions in `ParenListExpr` in a trailing array past `ParenListExpr`.
This saves 2 pointers per `ParenListExpr`. Additionally remove the branches
in the loop used to set the bits `TypeDependent`, `ValueDependent`,
`InstantiationDependent` and `ContainsUnexpandedParameterPack`,
and just access the bit-fields once at the end instead of during each iteration.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11865 bytes
Desc: not available
More information about the cfe-commits