[PATCH] D134599: [RISCV] Add CodeGen support of RISCV zcmp Extension
Xinlong Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 25 04:26:09 PDT 2022
VincentWu created this revision.
VincentWu added reviewers: kito-cheng, MaskRay, craig.topper, jrtc27, HsiangKai, asb.
Herald added subscribers: sunshaoce, StephenFan, vkmr, frasercrmck, jdoerfert, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
VincentWu requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.
This patch adds codegen support to the zcmp extension.
it add is two passes:
`RISCVMoveOptimizer.cpp` which combines two mv inst into one `cm.mva01s` or `cm.mva01s`.
`RISCVPushPopOptimizer.cpp` generates and inserts push/pop instructions. In addition to that, the stack order of the eplog and prolog has been reordered for push/pop inst.
co-author: @Lukacma
Repository:
rG LLVM Github Monorepo
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.462712.patch
Type: text/x-patch
Size: 139137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220925/46980137/attachment-0001.bin>
More information about the llvm-commits
mailing list