[PATCH] D69435: [clang-tidy] New checker performance-trivially-destructible-check

Anton Bikineev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 09:33:10 PDT 2019


AntonBikineev added a comment.

> There is no difference in perf for GCC.

Yes, but that's because gcc still optimizes the call to noinlined function. In the common scenario which this check addresses (destructor defaulted in .cpp file) gcc is not able to optimize the call.


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

https://reviews.llvm.org/D69435





More information about the cfe-commits mailing list