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

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 00:12:56 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 {
----------------
aaupov wrote:

Check Relocation.cpp

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


More information about the llvm-commits mailing list