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

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 21:42:45 PST 2024


================
@@ -276,12 +276,24 @@ class BinaryContext {
   void deregisterSectionName(const BinarySection &Section);
 
 public:
+  enum class ICFLevel {
+    None,
+    Safe, // Safe ICF for all sections.
+    All,  // Aggressive ICF for code, but safe ICF for data, similar to MSVC's
----------------
maksfb wrote:

This should be similar to LLD options. I'm confused by the comment about data and MSVC.

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


More information about the llvm-commits mailing list