Skip to content

Commit e5f2ed3

Browse files
[RISCV] Add IMinMax sched resources to P600SchedModel
CI checks were passing in #84962 (c48d818) but that commit caused failures once merged due to ships passing since the PR was not rebased on #85131. This commit fixes this problem by adding sched resources for integer min max instructions from Zbb in P600 model.
1 parent c48d818 commit e5f2ed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVSchedSiFiveP600.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def : WriteRes<WriteCTZ, [SiFiveP600IntArith]>;
161161
def : WriteRes<WriteCTZ32, [SiFiveP600IntArith]>;
162162

163163
def : WriteRes<WriteORCB, [SiFiveP600IntArith]>;
164+
def : WriteRes<WriteIMinMax, [SiFiveP600IntArith]>;
164165

165166
def : WriteRes<WriteREV8, [SiFiveP600IntArith]>;
166167

@@ -832,6 +833,7 @@ def : ReadAdvance<ReadCTZ32, 0>;
832833
def : ReadAdvance<ReadCPOP, 0>;
833834
def : ReadAdvance<ReadCPOP32, 0>;
834835
def : ReadAdvance<ReadORCB, 0>;
836+
def : ReadAdvance<ReadIMinMax, 0>;
835837
def : ReadAdvance<ReadREV8, 0>;
836838
def : ReadAdvance<ReadSHXADD, 0>;
837839
def : ReadAdvance<ReadSHXADD32, 0>;

0 commit comments

Comments
 (0)