[llvm] [BOLT][AArch64] Handle OpNegateRAState to enable optimizing binaries with pac-ret hardening (PR #120064)

Gergely Bálint via llvm-commits llvm-commits at lists.llvm.org
Fri May 9 02:29:04 PDT 2025


================
@@ -273,6 +275,11 @@ static cl::opt<bool> ShortenInstructions("shorten-instructions",
                                          cl::desc("shorten instructions"),
                                          cl::init(true),
                                          cl::cat(BoltOptCategory));
+
+cl::opt<bool> AllowPacret(
+    "allow-experimental-pacret",
+    cl::desc("Enable processing binaries with pac-ret (experimental)"),
+    cl::cat(BoltOptCategory));
----------------
bgergely0 wrote:

Still couldn't reproduce this, but I have moved it to `CommandLineOpts.cpp` just in case.

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


More information about the llvm-commits mailing list