[llvm] [RISCV] Fix scheduling info for C_FSW and C_FSWSP. (PR #82339)
Francesco Petrogalli via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 03:07:30 PST 2024
https://github.com/fpetrogalli created https://github.com/llvm/llvm-project/pull/82339
The FSW counterpart in the F extension uses the FP version of the SchedRead.
>From ca7c418f6239da3515abee5c5ec1e6d65698268e Mon Sep 17 00:00:00 2001
From: Francesco Petrogalli <francesco.petrogalli at apple.com>
Date: Tue, 20 Feb 2024 12:00:05 +0100
Subject: [PATCH] [RISCV] Fix scheduling info for C_FSW and C_FSWSP.
The FSW counterpart in the F extension uses the FP version of the
SchedRead.
---
llvm/lib/Target/RISCV/RISCVInstrInfoC.td | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
index 07137031d9fc71..e1b120efb0d15d 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoC.td
@@ -368,7 +368,7 @@ def C_SW : CStore_rri<0b110, "c.sw", GPRC, uimm7_lsb00>,
let DecoderNamespace = "RISCV32Only_",
Predicates = [HasStdExtCOrZcfOrZce, HasStdExtF, IsRV32] in
def C_FSW : CStore_rri<0b111, "c.fsw", FPR32C, uimm7_lsb00>,
- Sched<[WriteFST32, ReadStoreData, ReadMemBase]> {
+ Sched<[WriteFST32, ReadFStoreData, ReadFMemBase]> {
bits<7> imm;
let Inst{12-10} = imm{5-3};
let Inst{6} = imm{2};
@@ -578,7 +578,7 @@ def C_SWSP : CStackStore<0b110, "c.swsp", GPR, uimm8_lsb00>,
let DecoderNamespace = "RISCV32Only_",
Predicates = [HasStdExtCOrZcfOrZce, HasStdExtF, IsRV32] in
def C_FSWSP : CStackStore<0b111, "c.fswsp", FPR32, uimm8_lsb00>,
- Sched<[WriteFST32, ReadStoreData, ReadMemBase]> {
+ Sched<[WriteFST32, ReadFStoreData, ReadFMemBase]> {
let Inst{12-9} = imm{5-2};
let Inst{8-7} = imm{7-6};
}
More information about the llvm-commits
mailing list