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"
Paths
| Differential D127294
[AARCH64 folding] Do not fold any copy with NZCV ClosedPublic Authored by skatkov on Jun 8 2022, 5:31 AM.
Details Summary There is no instruction to fold NZCV, so, just do not do it. Without the fix the added test case crashes with an assert
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 16 2022, 12:05 AM This revision was landed with ongoing or failed builds.Jun 20 2022, 8:39 PM Closed by commit rG163c77b2e083: [AARCH64 folding] Do not fold any copy with NZCV (authored by skatkov). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 438538 llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/spill-fold.mir
|