[PATCH] D128513: AArch64: don't try to fold NZCV spill into an operation

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 03:38:51 PDT 2022


t.p.northover created this revision.
Herald added subscribers: hiraditya, kristof.beyls, mcrosier, qcolombet.
Herald added a project: All.
t.p.northover requested review of this revision.
Herald added a project: LLVM.

Only `mrs` & `msr` can access the `NZCV` flags register, so don't try to create any instructions spilling it.

Bit of an ugly test-case I'm afraid, so I decided the best way to limit scope for things to change and invalidate it was going the MIR route.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128513

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/test/CodeGen/AArch64/nospill-nzcv.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128513.439693.patch
Type: text/x-patch
Size: 11114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220624/568eb07f/attachment.bin>


More information about the llvm-commits mailing list