diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index e1f1c073346f..b03d421d3e6d 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -3621,6 +3621,11 @@ void AArch64InstrInfo::copyPhysReg(MachineBasicBlock &MBB, return; } +#ifndef NDEBUG + const TargetRegisterInfo &TRI = getRegisterInfo(); + errs() << TRI.getRegAsmName(DestReg) << " = COPY " + << TRI.getRegAsmName(SrcReg) << "\n"; +#endif llvm_unreachable("unimplemented reg-to-reg copy"); }