[PATCH] D103495: [static initializers] Don't put ordered dynamic initializers of static variables into global_ctors
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 8 00:04:00 PDT 2021
MaskRay added a comment.
In D103495#2804254 <https://reviews.llvm.org/D103495#2804254>, @efriedma wrote:
> Are there any existing optimizations that might be affected by this? In particular, I think GlobalOpt implicitly reorders functions in global_ctors.
Thanks for mentioning llvm::optimizeGlobalCtorsList. It keeps the order of the remaining items so I assume defining an order among constructors with the same priority should be fine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103495/new/
https://reviews.llvm.org/D103495
More information about the cfe-commits
mailing list