File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
llvm/lib/Target/AArch64/GISel Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2914,15 +2914,11 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
29142914 }
29152915
29162916 if (OpFlags & AArch64II::MO_GOT) {
2917- bool GOTIsSigned = MF.getInfo <AArch64FunctionInfo>()->hasELFSignedGOT ();
2918- I.setDesc (TII.get (GOTIsSigned ? AArch64::LOADgotAUTH : AArch64::LOADgot));
2917+ bool IsGOTSigned = MF.getInfo <AArch64FunctionInfo>()->hasELFSignedGOT ();
2918+ I.setDesc (TII.get (IsGOTSigned ? AArch64::LOADgotAUTH : AArch64::LOADgot));
29192919 I.getOperand (1 ).setTargetFlags (OpFlags);
2920- if (GOTIsSigned) {
2921- MachineInstrBuilder MIB (MF, I);
2922- MIB.addDef (AArch64::X16, RegState::Implicit);
2923- MIB.addDef (AArch64::X17, RegState::Implicit);
2924- MIB.addDef (AArch64::NZCV, RegState::Implicit);
2925- }
2920+ if (IsGOTSigned)
2921+ I.addImplicitDefUseOperands (MF);
29262922 } else if (TM.getCodeModel () == CodeModel::Large &&
29272923 !TM.isPositionIndependent ()) {
29282924 // Materialize the global using movz/movk instructions.
You can’t perform that action at this time.
0 commit comments