Skip to content

Commit ec3e84e

Browse files
adeel10xPaoloS02
authored andcommitted
Used PatGprGpr class to define instruction selection pattern for cv.ror. In previous patch, Pat class was used directly
1 parent b351908 commit ec3e84e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: llvm/lib/Target/RISCV/RISCVInstrInfoCOREV.td

+1-3
Original file line numberDiff line numberDiff line change
@@ -1222,9 +1222,7 @@ let Predicates = [HasExtXcvbitmanip, IsRV32] in {
12221222
def : PatGpr<int_riscv_cv_bitmanip_clb, CV_CLB>;
12231223
def : PatGpr<int_riscv_cv_bitmanip_cnt, CV_CNT>;
12241224

1225-
//def : PatGprGpr<int_riscv_cv_bitmanip_ror, CV_ROR>;
1226-
def : Pat<(rotr i32:$rs1, i32:$rs2),
1227-
(CV_ROR GPR:$rs1, GPR:$rs2)>;
1225+
def : PatGprGpr<rotr, CV_ROR>;
12281226

12291227
def : Pat<(int_riscv_cv_bitmanip_bitrev GPR:$rs1, cv_tuimm5:$pts, cv_tuimm2:$radix),
12301228
(CV_BITREV GPR:$rs1, cv_tuimm2:$radix, cv_tuimm5:$pts)>;

0 commit comments

Comments
 (0)