Skip to content

Commit 92da28a

Browse files
[RISCV][ISel] Fix comment to match direction of predicate in code. NFC. (#68248)
The comment says something different than what is happening in the code. This patch aligns the comment with the code.
1 parent 7282975 commit 92da28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ static void translateSetCCForBranch(const SDLoc &DL, SDValue &LHS, SDValue &RHS,
21282128
}
21292129
break;
21302130
case ISD::SETLT:
2131-
// Convert X < 1 to 0 <= X.
2131+
// Convert X < 1 to 0 >= X.
21322132
if (C == 1) {
21332133
RHS = LHS;
21342134
LHS = DAG.getConstant(0, DL, RHS.getValueType());

0 commit comments

Comments
 (0)