[llvm] [AArch64][PAC][GISel] Add missing clobbering info to LOADgotAUTH (PR #157433)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 03:08:36 PDT 2025


================
@@ -2914,10 +2914,11 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
     }
 
     if (OpFlags & AArch64II::MO_GOT) {
-      I.setDesc(TII.get(MF.getInfo<AArch64FunctionInfo>()->hasELFSignedGOT()
-                            ? AArch64::LOADgotAUTH
-                            : AArch64::LOADgot));
+      bool IsGOTSigned = MF.getInfo<AArch64FunctionInfo>()->hasELFSignedGOT();
+      I.setDesc(TII.get(IsGOTSigned ? AArch64::LOADgotAUTH : AArch64::LOADgot));
       I.getOperand(1).setTargetFlags(OpFlags);
+      if (IsGOTSigned)
----------------
arsenm wrote:

Just do it unconditionally 

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


More information about the llvm-commits mailing list