[PATCH] Don't use ManagedStatic.

Sean Silva chisophugis at gmail.com
Mon Jun 8 19:45:06 PDT 2015


What is calling object::object_category so much that it can occupy 9% of the run time? If that code path is sufficiently common maybe it should just not be using "errors" in the first place.

Overall, just relying on thread-safe statics is preferable, but even then having so many non-inlined calls to this function in regular operation doesn't seem right.


http://reviews.llvm.org/D10303

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list