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) {
2914
2914
}
2915
2915
2916
2916
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));
2919
2919
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);
2926
2922
} else if (TM.getCodeModel () == CodeModel::Large &&
2927
2923
!TM.isPositionIndependent ()) {
2928
2924
// Materialize the global using movz/movk instructions.
You can’t perform that action at this time.
0 commit comments