rnk added subscribers: rjmccall, rnk.
rnk added inline comments.

================
Comment at: clang/include/clang/Basic/Diagnostic.h:1086-1090
 /// Note that many of these will be created as temporary objects (many call
 /// sites), so we want them to be small and we never want their address taken.
 /// This ensures that compilers with somewhat reasonable optimizers will 
promote
 /// the common fields to registers, eliminating increments of the NumArgs 
field,
 /// for example.
----------------
This comment documents that this object is intended to be small. Adding a 
vtable grows it by one pointer, and the virtual methods practically ensure that 
it will always be address-taken and will not be promoted from memory to 
registers. I think you need to reconsider the design of this patch. I will 
revert it for now. Please get approval from @rsmith or @rjmccall before adding 
a vtable to this class gain.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84362/new/

https://reviews.llvm.org/D84362

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to