[AARCH64 folding] Do not fold any copy with NZCV
authorSerguei Katkov <serguei.katkov@azul.com>
Wed, 8 Jun 2022 12:14:20 +0000 (19:14 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Tue, 21 Jun 2022 03:38:49 +0000 (10:38 +0700)
commit163c77b2e0831853b59cdd24ece9637f8a19cc79
treedaf2eef288396d787f666f454bd9c493b1b6d777
parentd66cbc565adbea8b7362349e527ac7aa2c75788f
[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
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/spill-fold.mir