Skip to content

Commit a9435cb

Browse files
authored
[RISCV] Use SDT_RISCVIntUnaryOpW for RISCVISD::ABSW type profile. NFC (#168932)
This removes an unnecessary isel pattern for the RV32 HwMode.
1 parent 310abe0 commit a9435cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoP.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ let Predicates = [HasStdExtP, IsRV32] in {
14611461
// Codegen patterns
14621462
//===----------------------------------------------------------------------===//
14631463

1464-
def riscv_absw : RVSDNode<"ABSW", SDTIntUnaryOp>;
1464+
def riscv_absw : RVSDNode<"ABSW", SDT_RISCVIntUnaryOpW>;
14651465

14661466
def SDT_RISCVPASUB : SDTypeProfile<1, 2, [SDTCisVec<0>,
14671467
SDTCisInt<0>,

0 commit comments

Comments
 (0)