[all-commits] [llvm/llvm-project] 9c9a4a: [LOH] Don't emit AdrpAddStr when register could be...
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Wed Jun 11 14:54:51 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9c9a4a284e95ea5e27617af7235e3ab049bae680
https://github.com/llvm/llvm-project/commit/9c9a4a284e95ea5e27617af7235e3ab049bae680
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2025-06-11 (Wed, 11 Jun 2025)
Changed paths:
M llvm/lib/Target/AArch64/AArch64CollectLOH.cpp
M llvm/test/CodeGen/AArch64/loh-adrp-add-ldr-clobber.mir
Log Message:
-----------
[LOH] Don't emit AdrpAddStr when register could be clobbered (#142849)
https://github.com/llvm/llvm-project/commit/b783aa89795635cbe7b25b4143b562931fcec9f6
added a check to ensure an `AdrpAddLdr` LOH isn't created when there is
an instruction between the `add` and `ldr`
https://github.com/llvm/llvm-project/blob/50c5704dc000cc0af41a511aa44db03233edf0af/llvm/lib/Target/AArch64/AArch64CollectLOH.cpp#L419-L431
We need a similar check for `AdrpAddStr`. Although this technically
isn't implemented in LLD, it could be in the future.
https://github.com/llvm/llvm-project/blob/50c5704dc000cc0af41a511aa44db03233edf0af/lld/MachO/Arch/ARM64.cpp#L699-L702
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list