Skip to content

Commit 90d7711

Browse files
committed
Remove vector and address comments
1 parent 5e13d85 commit 90d7711

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

llvm/lib/Target/RISCV/RISCVSchedGenericOOO.td

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -----*- tablegen -*-===//
1+
//===-- RISCVSchedGenericOOO.td - Generic OOO Processor ----*- tablegen -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -13,19 +13,18 @@
1313
// * IXU (Integer ALU Unit): 4 units, only one can execute mul/div.
1414
// * FXU (Floating-point Unit): 2 units.
1515
// * LSU (Load/Store Unit): 2 units.
16-
// * VXU (Vector Unit): 1 unit.
1716
// * Latency:
1817
// * Integer instructions: 1 cycle.
1918
// * Multiplication instructions: 4 cycles.
2019
// * Division instructions: 13-21 cycles.
2120
// * Floating-point instructions: 2-6 cycles.
2221
// * Floating-point fdiv/fsqrt instructions: 9-21 cycles.
23-
// * Vector instructions: 2-6 cycles.
2422
// * Load/Store:
2523
// * IXU: 4 cycles.
2624
// * FXU: 4 cycles.
27-
// * VXU: 6 cycles.
2825
// * Integer/floating-point/vector div/rem/sqrt/... are non-pipelined.
26+
//
27+
// TODO: Add vector scheduling.
2928
//===----------------------------------------------------------------------===//
3029

3130
def GenericOOOModel : SchedMachineModel {
@@ -49,8 +48,6 @@ def GenericOOOLSU : ProcResource<2>;
4948
def GenericOOOFMulDiv : ProcResource<1>;
5049
def GenericOOOFloat : ProcResource<1>;
5150
def GenericOOOFPU : ProcResGroup<[GenericOOOFMulDiv, GenericOOOFloat]>;
52-
// TODO: Add vector scheduling.
53-
// def GenericOOOVXU : ProcResource<1>;
5451

5552
//===----------------------------------------------------------------------===//
5653
// Branches
@@ -318,10 +315,10 @@ let Latency = 2 in {
318315

319316
// Other than Zfhmin
320317
let Latency = 2 in {
321-
def : WriteRes<WriteFCvtI64ToF16, []>;
322-
def : WriteRes<WriteFCvtI32ToF16, []>;
323-
def : WriteRes<WriteFCvtF16ToI64, []>;
324-
def : WriteRes<WriteFCvtF16ToI32, []>;
318+
def : WriteRes<WriteFCvtI64ToF16, [GenericOOOFPU]>;
319+
def : WriteRes<WriteFCvtI32ToF16, [GenericOOOFPU]>;
320+
def : WriteRes<WriteFCvtF16ToI64, [GenericOOOFPU]>;
321+
def : WriteRes<WriteFCvtF16ToI32, [GenericOOOFPU]>;
325322
}
326323

327324
// Arithmetic and logic

0 commit comments

Comments
 (0)