[llvm] [BOLT] Add support for safe-icf (PR #116275)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 11:36:51 PST 2024
================
@@ -1945,6 +1959,29 @@ static void printDebugInfo(raw_ostream &OS, const MCInst &Instruction,
OS << " discriminator:" << Row.Discriminator;
}
+/// Skip instructions that do not potentially manipulate or compare function
+/// addresses.
+static bool skipInstruction(const MCInst &Inst, const BinaryContext &BC) {
+ const bool IsX86 = BC.isX86();
----------------
ayermolo wrote:
I think I just miss understood the code I was looking at for references.
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list