[PATCH] D151506: [RISCV] Fix typo VLUpperBound to VLEN in SiFive7. NFC.
Michael Maitland via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 14:55:08 PDT 2023
michaelmaitland created this revision.
michaelmaitland added reviewers: craig.topper, nitinjohnraj.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
michaelmaitland requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
The scheduler models said VLUpperBound which was a typo and should have
said VLEN. This is a purley cosmetic fix.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151506
Files:
llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
Index: llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
+++ llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
@@ -108,18 +108,18 @@
// to use a different 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)
);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151506.525830.patch
Type: text/x-patch
Size: 1428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/72afad27/attachment.bin>
More information about the llvm-commits
mailing list