[PATCH] D155580: [trivial-auto-var-init] Do not emit initialization code for empty class

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 18 14:08:20 PDT 2023


jfb added a comment.

(sorry for sending twice, looks like email reply failed)

This is the same as padding, and is initialized on purpose. If it’s truly unused then the optimizer will eliminate it… unless it can’t prove whether the store is dead.

Does this show up in any meaningless performance case? If so, can we optimize it away?


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

https://reviews.llvm.org/D155580



More information about the cfe-commits mailing list