[llvm] [BOLT][AArch64] Run LDR relaxation (PR #165787)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 05:27:01 PST 2025
================
@@ -6,29 +6,29 @@
//
//===----------------------------------------------------------------------===//
//
-// This file declares the ADRRelaxationPass class, which replaces AArch64
-// non-local ADR instructions with ADRP + ADD due to small offset range of ADR
-// instruction (+- 1MB) which could be easily overflowed after BOLT
-// optimizations. Such problems are usually connected with errata 843419
-// https://developer.arm.com/documentation/epm048406/2100/
+// This file declares the AArch64RelaxationPass class, which replaces AArch64
+// non-local ADR/LDR instructions with ADRP + ADD/LDR due to small offset
+// range of ADR and LDR instruction (+- 1MB) which could be easily overflowed
+// after BOLT optimizations. Such problems are usually connected with errata
+// 843419: https://developer.arm.com/documentation/epm048406/2100/
// The linker could replace ADRP instruction with ADR in some cases.
//
//===----------------------------------------------------------------------===//
-#ifndef BOLT_PASSES_ADRRELAXATIONPASS_H
-#define BOLT_PASSES_ADRRELAXATIONPASS_H
+#ifndef BOLT_PASSES_ADRLDRRELAXATIONPASS_H
+#define BOLT_PASSES_ADRLDRRELAXATIONPASS_H
----------------
paschalis-mpeis wrote:
I believe the guard should be like below?
```suggestion
#ifndef BOLT_PASSES_AARCH64RELAXATIONPASS_H
#define BOLT_PASSES_AARCH64RELAXATIONPASS_H
```
https://github.com/llvm/llvm-project/pull/165787
More information about the llvm-commits
mailing list