[llvm] [AArch64][PAC][GISel] Add missing clobbering info to LOADgotAUTH (PR #157433)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 08:20:51 PDT 2025
================
@@ -2914,10 +2914,15 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
}
if (OpFlags & AArch64II::MO_GOT) {
- I.setDesc(TII.get(MF.getInfo<AArch64FunctionInfo>()->hasELFSignedGOT()
- ? AArch64::LOADgotAUTH
- : AArch64::LOADgot));
+ bool GOTIsSigned = MF.getInfo<AArch64FunctionInfo>()->hasELFSignedGOT();
+ I.setDesc(TII.get(GOTIsSigned ? AArch64::LOADgotAUTH : AArch64::LOADgot));
I.getOperand(1).setTargetFlags(OpFlags);
+ if (GOTIsSigned) {
+ MachineInstrBuilder MIB(MF, I);
+ MIB.addDef(AArch64::X16, RegState::Implicit);
----------------
arsenm wrote:
Use addImplicitDefUseOperands, or build a fresh instruction instead of hardcoding this list of registers?
https://github.com/llvm/llvm-project/pull/157433
More information about the llvm-commits
mailing list