[llvm] [BOLT][AArch64] Run LDR relaxation (PR #165787)
Gergely Bálint via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 02:17:01 PDT 2025
================
@@ -35,18 +36,21 @@ namespace bolt {
// jobs and checking the exit flag after it.
static bool PassFailed = false;
-void ADRRelaxationPass::runOnFunction(BinaryFunction &BF) {
+void AArch64RelaxationPass::runOnFunction(BinaryFunction &BF) {
if (PassFailed)
return;
BinaryContext &BC = BF.getBinaryContext();
for (BinaryBasicBlock &BB : BF) {
for (auto It = BB.begin(); It != BB.end(); ++It) {
MCInst &Inst = *It;
- if (!BC.MIB->isADR(Inst))
+ bool IsADR = BC.MIB->isADR(Inst);
+
+ // TODO: Handlel other types of LDR (literal, PC-relative) instructions.
----------------
bgergely0 wrote:
nit: typo `Handlel`
https://github.com/llvm/llvm-project/pull/165787
More information about the llvm-commits
mailing list