[llvm] [BOLT][AArch64] Run LDR relaxation (PR #165787)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 05:27:00 PST 2025


================
@@ -20,10 +21,10 @@ using namespace llvm;
 namespace opts {
 extern cl::OptionCategory BoltCategory;
 
-static cl::opt<bool>
-    AdrPassOpt("adr-relaxation",
-               cl::desc("Replace ARM non-local ADR instructions with ADRP"),
-               cl::init(true), cl::cat(BoltCategory), cl::ReallyHidden);
+static cl::opt<bool> AArch64PassOpt(
+    "adr-ldr-relaxation",
+    cl::desc("Replace ARM non-local ADR/LDR instructions with ADRP"),
----------------
paschalis-mpeis wrote:

Maybe we could make naming a bit more consistent across the patch (filenames, cl opts, etc)?

Either `AdrLdrPassOpt` / `adr-ldr-relaxation`, or keep it generic as `AArch64RelaxationPassOpt` / `aarch64-relaxation`, or maybe plural `AArch64Relaxations` ?

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


More information about the llvm-commits mailing list