[PATCH] D150221: Add option -fkeep-static-variables to emit all static variables

Zheng Qian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 12 11:03:06 PDT 2023


qianzhen added a comment.

This is useful in keeping the static variables in a patchable function (https://clang.llvm.org/docs/AttributeReference.html#patchable-function-entry), so that they can be directly addressed by a hot patch when the optimization to merge them is enabled (https://llvm.org/docs/doxygen/GlobalMerge_8cpp_source.html).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150221



More information about the cfe-commits mailing list