From 6611fbc62af59a1d28a9f310d2e95267911d4385 Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Mon, 12 Jul 2021 15:36:36 -0700 Subject: [PATCH] [AArch64] Dump a little more info about unimplemented reg-to-reg copies. NFC --- llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index e1f1c07..b03d421 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"); } -- 2.7.4