[PATCH] D59509: Make static constructors + destructors minsize + cold (except for in -O0)

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 18 13:57:07 PDT 2019


lebedev.ri added inline comments.


================
Comment at: clang/test/CodeGen/static-attr.cpp:4
+
+// WITHOUT-NOT: cold minsize noinline
+// WITH: define internal void @__cxx_global_var_init() [[ATTR:#[0-9]]]
----------------
This is fragile, it may have false-negative if they appear in other order.


Repository:
  rC Clang

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

https://reviews.llvm.org/D59509





More information about the cfe-commits mailing list