[AArch64] Dump a little more info about unimplemented reg-to-reg copies. NFC
authorJon Roelofs <jonathan_roelofs@apple.com>
Mon, 12 Jul 2021 22:36:36 +0000 (15:36 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Mon, 12 Jul 2021 22:37:11 +0000 (15:37 -0700)
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

index e1f1c07..b03d421 100644 (file)
@@ -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");
 }