[llvm] [BOLT] Add support for safe-icf (PR #116275)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 14:24:06 PST 2024


================
@@ -75,8 +75,59 @@ cl::opt<std::string> CompDirOverride(
              "location, which is used with DW_AT_dwo_name to construct a path "
              "to *.dwo files."),
     cl::Hidden, cl::init(""), cl::cat(BoltCategory));
+
+cl::opt<std::string> ICF("icf", cl::desc("fold functions with identical code"),
+                         cl::ValueOptional, cl::cat(BoltOptCategory));
 } // namespace opts
 
+namespace {
----------------
ayermolo wrote:

Where would be a better place?

https://github.com/llvm/llvm-project/pull/116275


More information about the llvm-commits mailing list