[llvm] [M68k] Handle 16 bit MOVs to and from CCR (PR #114714)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 21:36:20 PST 2024


================
@@ -872,10 +889,10 @@ unsigned M68kInstrInfo::getGlobalBaseReg(MachineFunction *MF) const {
   //
   // NOTE
   // Normally M68k uses A5 register as global base pointer but this will
-  // create unnecessary spill if we use less then 4 registers in code; since A5
-  // is callee-save anyway we could try to allocate caller-save first and if
-  // lucky get one, otherwise it does not really matter which callee-save to
-  // use.
+  // create unnecessary spill if we use less then 4 registers in code; since
----------------
knickish wrote:

Ah, thank you, that will be helpful. Removed the unrelated formatting fixes

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


More information about the llvm-commits mailing list