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

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 16:07:09 PST 2024


================
@@ -52,7 +52,11 @@ class IdenticalCodeFolding : public BinaryFunctionPass {
     return VtableBitVector.test(Address / 8);
   }
   /// Initialize bit vector of memory addresses of vtables.
-  void initVtable() { VtableBitVector.resize((((uint64_t)1) << 32) / 8); }
+  void initVtable() {
+    constexpr uint64_t PotentialRelocationAddressRange =
----------------
aaupov wrote:

A word why 4GB is sufficient?

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


More information about the llvm-commits mailing list