[llvm] [M68k] Emit MOV16ds for moves from CCR on 68000 (PR #171703)

Daniel Thornburgh via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 11:52:24 PST 2025


================
@@ -690,6 +690,7 @@ void M68kInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
                                 const DebugLoc &DL, Register DstReg,
                                 Register SrcReg, bool KillSrc,
                                 bool RenamableDest, bool RenamableSrc) const {
+  const auto &Subtarget = MBB.getParent()->getSubtarget<M68kSubtarget>();
----------------
mysterymath wrote:

I'd push back on this; there is a type, in the argument to getSubtarget<>. From the style guide: "Don’t “almost always” use auto, but do use auto with initializers like cast<Foo>(...) or other places where the type is already obvious from the context. "

https://github.com/llvm/llvm-project/pull/171703


More information about the llvm-commits mailing list