[all-commits] [llvm/llvm-project] 163c77: [AARCH64 folding] Do not fold any copy with NZCV

serguei-katkov via All-commits all-commits at lists.llvm.org
Mon Jun 20 20:39:18 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 163c77b2e0831853b59cdd24ece9637f8a19cc79
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/test/CodeGen/AArch64/spill-fold.mir

  Log Message:
  [AARCH64 folding] Do not fold any copy with NZCV

There is no instruction to fold NZCV, so, just do not do it.

Without the fix the added test case crashes with an assert
"Mismatched register size in non subreg COPY"

Reviewed By: danilaml
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D127294

More information about the All-commits mailing list