[llvm] [RISCV] Don't cost Fmv for Zfinx in isFPImmLegal. (PR #107361)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 00:41:05 PDT 2024
================
@@ -2288,10 +2288,11 @@ bool RISCVTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT,
return true;
// Building an integer and then converting requires a fmv at the end of
- // the integer sequence.
+ // the integer sequence. The fmv is not requires for Zfinx.
----------------
lukel97 wrote:
```suggestion
// the integer sequence. The fmv is not required for Zfinx.
```
https://github.com/llvm/llvm-project/pull/107361
More information about the llvm-commits
mailing list