[llvm] [BOLT] Add support for safe-icf (PR #116275)
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 17:34:22 PST 2024
================
@@ -36,6 +38,15 @@ class IdenticalCodeFolding : public BinaryFunctionPass {
const char *getName() const override { return "identical-code-folding"; }
Error runOnFunctions(BinaryContext &BC) override;
+
+private:
+ /// Analyses .text section and relocations and marks functions that are not
+ /// safe to fold.
+ Error markFunctionsUnsafeToFold(BinaryContext &BC);
+ /// Processes relocations in the .data section to identify function
----------------
dcci wrote:
Processes -> Process
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list