Skip to content

Commit 09acc16

Browse files
author
Yeting Kuo
committed
Add comments about the reason to remove x7.
1 parent 2221e45 commit 09acc16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18884,6 +18884,7 @@ ArrayRef<MCPhysReg> RISCV::getArgGPRs(const RISCVABI::ABI ABI) {
1888418884
static ArrayRef<MCPhysReg> getFastCCArgGPRs(const RISCVABI::ABI ABI) {
1888518885
// The GPRs used for passing arguments in the FastCC, X5 and X6 might be used
1888618886
// for save-restore libcall, so we don't use them.
18887+
// Don't use X7 for fastcc, since Zicfilp uses X7 as the label register.
1888718888
static const MCPhysReg FastCCIGPRs[] = {
1888818889
RISCV::X10, RISCV::X11, RISCV::X12, RISCV::X13, RISCV::X14,
1888918890
RISCV::X15, RISCV::X16, RISCV::X17, RISCV::X28, RISCV::X29,

0 commit comments

Comments
 (0)