[llvm] c73c767 - [RISCV] Fix typo VLUpperBound to VLEN in SiFive7. NFC.
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 07:29:43 PDT 2023
Author: Michael Maitland
Date: 2023-05-26T07:29:27-07:00
New Revision: c73c7678e066a77ff6530793cd558705c081ee34
URL: https://github.com/llvm/llvm-project/commit/c73c7678e066a77ff6530793cd558705c081ee34
DIFF: https://github.com/llvm/llvm-project/commit/c73c7678e066a77ff6530793cd558705c081ee34.diff
LOG: [RISCV] Fix typo VLUpperBound to VLEN in SiFive7. NFC.
The scheduler models said VLUpperBound which was a typo and should have
said VLEN. This is a purley cosmetic fix.
Differential Revision: https://reviews.llvm.org/D151506
Added:
Modified:
llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVSchedSiFive7.td b/llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
index 77bea1f90bb0..d38051d2420a 100644
--- a/llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
+++ b/llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
@@ -108,18 +108,18 @@ class SiFive7GetCyclesOnePerElement<string mx, int sew> {
// to use a
diff erent VLEN, this model will not make scheduling decisions
// based on the user specified VLEN.
// c = ceil(VLEN / SEW) * LMUL
- // Note: c >= 1 since the smallest VLUpperBound is 512 / 8 = 8, and the
- // largest division performed on VLUpperBound is in MF8 case with division
+ // Note: c >= 1 since the smallest VLEN is 512 / 8 = 8, and the
+ // largest division performed on VLEN is in MF8 case with division
// by 8. Therefore, there is no need to ceil the result.
- int VLUpperBound = !div(512, sew);
+ int VLEN = !div(512, sew);
int c = !cond(
- !eq(mx, "M1") : VLUpperBound,
- !eq(mx, "M2") : !mul(VLUpperBound, 2),
- !eq(mx, "M4") : !mul(VLUpperBound, 4),
- !eq(mx, "M8") : !mul(VLUpperBound, 8),
- !eq(mx, "MF2") : !div(VLUpperBound, 2),
- !eq(mx, "MF4") : !div(VLUpperBound, 4),
- !eq(mx, "MF8") : !div(VLUpperBound, 8)
+ !eq(mx, "M1") : VLEN,
+ !eq(mx, "M2") : !mul(VLEN, 2),
+ !eq(mx, "M4") : !mul(VLEN, 4),
+ !eq(mx, "M8") : !mul(VLEN, 8),
+ !eq(mx, "MF2") : !div(VLEN, 2),
+ !eq(mx, "MF4") : !div(VLEN, 4),
+ !eq(mx, "MF8") : !div(VLEN, 8)
);
}
More information about the llvm-commits
mailing list