Skip to content

Commit 4ef4947

Browse files
committed
Call addImplicitDefUseOperands unconditionally
1 parent cafdddb commit 4ef4947

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,8 +2917,7 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
29172917
bool IsGOTSigned = MF.getInfo<AArch64FunctionInfo>()->hasELFSignedGOT();
29182918
I.setDesc(TII.get(IsGOTSigned ? AArch64::LOADgotAUTH : AArch64::LOADgot));
29192919
I.getOperand(1).setTargetFlags(OpFlags);
2920-
if (IsGOTSigned)
2921-
I.addImplicitDefUseOperands(MF);
2920+
I.addImplicitDefUseOperands(MF);
29222921
} else if (TM.getCodeModel() == CodeModel::Large &&
29232922
!TM.isPositionIndependent()) {
29242923
// Materialize the global using movz/movk instructions.

0 commit comments

Comments
 (0)