[PATCH] D134599: [RISCV] Add CodeGen support of RISCV zcmp Extension

Xinlong Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 00:52:18 PST 2022


VincentWu updated this revision to Diff 473904.
VincentWu added a comment.

Do not emit Push/Pop when FP is in used

Fixed the problem mentioned in https://github.com/plctlab/llvm-project/issues/58

For the reason that the Spec of the ZCMP extension is not currently modified for this purpose, the LLVM implementation is modified first to avoid this problem. When DisableFramePointerElim is set, the generation of Push/Pop instructions is stopped.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134599/new/

https://reviews.llvm.org/D134599

Files:
  llvm/lib/Target/RISCV/CMakeLists.txt
  llvm/lib/Target/RISCV/RISCV.h
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/lib/Target/RISCV/RISCVFrameLowering.h
  llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
  llvm/lib/Target/RISCV/RISCVMoveOptimizer.cpp
  llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
  llvm/test/CodeGen/RISCV/O0-pipeline.ll
  llvm/test/CodeGen/RISCV/O3-pipeline.ll
  llvm/test/CodeGen/RISCV/attributes.ll
  llvm/test/CodeGen/RISCV/callee-saved-gprs.ll
  llvm/test/CodeGen/RISCV/cm_mvas_mvsa.ll
  llvm/test/CodeGen/RISCV/push-pop-popret.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134599.473904.patch
Type: text/x-patch
Size: 168055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221108/823dd39e/attachment.bin>


More information about the llvm-commits mailing list