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

Anatoly Trosinenko via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 02:54:47 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)
----------------
atrosinenko wrote:

Updated in 4ef494702e0a0f7a9993e43701d4573e65fa69a0.

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


More information about the llvm-commits mailing list