Skip to content

Commit 2a43d6c

Browse files
committed
remove the lshr pattern.
1 parent 923eaea commit 2a43d6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,7 @@ def CV_HI5: SDNodeXForm<imm, [{
676676
}]>;
677677

678678
def positive : PatFrags<(ops node:$value),
679-
[(abs node:$value), (and node:$value, 0x7FFFFFFF),
680-
(lshr (shl node:$value, (XLenVT 1)), (XLenVT 1)]>;
679+
[(abs node:$value), (and node:$value, 0x7FFFFFFF)]>;
681680
def between : PatFrags<(ops node:$lowerBound, node:$upperBound, node:$value),
682681
[(smin (smax node:$value, node:$lowerBound), node:$upperBound),
683682
(smax (smin node:$value, node:$upperBound), node:$lowerBound)]>;

0 commit comments

Comments
 (0)