Skip to content

Commit eaa45dc

Browse files
committed
[RISCV] Remove unneeded isel (sext_inreg $rs1, i32) isel pattern from RISCVInstrInfoXTHead.td. NFC
This pattern is identical to the pattern for the sext.w encoding of addiw which has higher priority.
1 parent e4106aa commit eaa45dc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@ def : PatGprImm<rotr, TH_SRRI, uimmlog2xlen>;
578578
// it can be implemented with th.srri by negating the immediate.
579579
def : Pat<(rotl (XLenVT GPR:$rs1), uimmlog2xlen:$shamt),
580580
(TH_SRRI GPR:$rs1, (ImmSubFromXLen uimmlog2xlen:$shamt))>;
581-
def : Pat<(sext_inreg (XLenVT GPR:$rs1), i32), (TH_EXT GPR:$rs1, 31, 0)>;
582581
def : Pat<(sext_inreg (XLenVT GPR:$rs1), i16), (TH_EXT GPR:$rs1, 15, 0)>;
583582
def : Pat<(sext_inreg (XLenVT GPR:$rs1), i8), (TH_EXT GPR:$rs1, 7, 0)>;
584583
def : Pat<(sext_inreg (XLenVT GPR:$rs1), i1), (TH_EXT GPR:$rs1, 0, 0)>;

0 commit comments

Comments
 (0)