[all-commits] [llvm/llvm-project] bea33f: [M68k] Fix the crash of fast register allocator

Sheng via All-commits all-commits at lists.llvm.org
Wed Sep 14 18:24:50 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bea33f75e2bf1cbe3fd61b3ff7d2cc0b99391588
  Author: Sheng <ox59616e at gmail.com>
  Date:   2022-09-15 (Thu, 15 Sep 2022)

  Changed paths:
    M llvm/lib/Target/M68k/M68kInstrInfo.cpp
    A llvm/test/CodeGen/M68k/PR57660.ll

  Log Message:
  [M68k] Fix the crash of fast register allocator

`MOVEM` is used to spill the register, which will cause problem with 1 byte data, since it only supports word (2 bytes) and long (4 bytes) size.

We change to use the normal `move` instruction to spill 1 byte data.

Fixes #57660

Reviewed By: myhsu

Differential Revision: https://reviews.llvm.org/D133636

More information about the All-commits mailing list