[PATCH] D71830: [OpenMP][Part 2] Use reusable OpenMP context/traits handling
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 13 17:17:46 PDT 2020
rnk added inline comments.
================
Comment at: clang/include/clang/AST/OpenMPClause.h:6682
+ /// The outermost level of selector sets.
+ llvm::SmallVector<OMPTraitSet, 4> Sets;
+
----------------
This is not a good data structure choice. You have three levels of small vector nesting, so sizeof OMPTraitInfo is 880 bytes, and then you are passing it by value in in some of the attribute classes. Are you sure you wanted to do that?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71830/new/
https://reviews.llvm.org/D71830
More information about the cfe-commits
mailing list