mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
[RISCV] Remove unusable pattern from RISCVGISel.td. NFC
This pattern doesn't have a GISelPredicateCode so it's only usable in SDAG.
This commit is contained in:
@@ -126,11 +126,6 @@ let Predicates = [HasAtomicLdSt, IsRV64] in {
|
||||
// RV64 i32 patterns not used by SelectionDAG
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
def zext_is_sext : PatFrag<(ops node:$src), (zext node:$src), [{
|
||||
KnownBits Known = CurDAG->computeKnownBits(N->getOperand(0), 0);
|
||||
return Known.isNonNegative();
|
||||
}]>;
|
||||
|
||||
let Predicates = [IsRV64] in {
|
||||
def : LdPat<extloadi8, LBU, i32>; // Prefer unsigned due to no c.lb in Zcb.
|
||||
def : LdPat<extloadi16, LH, i32>;
|
||||
@@ -142,9 +137,6 @@ def : Pat<(sext (i32 GPR:$src)), (ADDIW GPR:$src, 0)>;
|
||||
|
||||
def : Pat<(sext_inreg (i64 (add GPR:$rs1, simm12_lo:$imm)), i32),
|
||||
(ADDIW GPR:$rs1, simm12_lo:$imm)>;
|
||||
|
||||
// Use sext if the sign bit of the input is 0.
|
||||
def : Pat<(zext_is_sext (i32 GPR:$src)), (ADDIW GPR:$src, 0)>;
|
||||
}
|
||||
|
||||
let Predicates = [IsRV64, NoStdExtZba] in
|
||||
|
||||
Reference in New Issue
Block a user