Resolves #63917.
Also lets the compiler check for available GPR before hitting the stack.
Paths
| Differential D155502
[RISCV] Do not use FPR registers for fastcc if zfh/f/d is not specified in the architecture ClosedPublic Authored by eopXD on Jul 17 2023, 11:29 AM.
Details Summary Resolves #63917. Also lets the compiler check for available GPR before hitting the stack.
Diff Detail
Event Timeline
eopXD marked an inline comment as done. Comment ActionsAdd test case and fix if-condition for f16.
Comment Actions Improve test case
eopXD marked an inline comment as done. craig.topper retitled this revision from [RISCV] Do not use F registers if zvfh/f/d is not specified in the architecture to [RISCV] Do not use FPR registers for fastcc if zfh/f/d is not specified in the architecture.Jul 17 2023, 12:37 PM Comment Actions LGTM.
This revision is now accepted and ready to land.Jul 17 2023, 1:15 PM eopXD marked an inline comment as done. Comment ActionsFix if-condition, use GPR register when zhinx/zfinx/zdinx is available. Closed by commit rGeb89bf8d0d10: [RISCV] Do not use FPR registers for fastcc if zfh/f/d is not specified in the… (authored by eopXD). · Explain WhyJul 18 2023, 10:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 541612 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/fastcc-without-f-reg.ll
|
I think you meant Zfh? But even then you probably mean Zfh || Zfhmin?