[llvm] 92da28a - [RISCV][ISel] Fix comment to match direction of predicate in code. NFC. (#68248)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 12:17:43 PDT 2023
Author: Michael Maitland
Date: 2023-10-04T15:17:38-04:00
New Revision: 92da28aae862b198a56c5b80adc526df36cea362
URL: https://github.com/llvm/llvm-project/commit/92da28aae862b198a56c5b80adc526df36cea362
DIFF: https://github.com/llvm/llvm-project/commit/92da28aae862b198a56c5b80adc526df36cea362.diff
LOG: [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.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index d72ec1591f9b0b3..4376969c0e5ae73 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -2128,7 +2128,7 @@ static void translateSetCCForBranch(const SDLoc &DL, SDValue &LHS, SDValue &RHS,
}
break;
case ISD::SETLT:
- // Convert X < 1 to 0 <= X.
+ // Convert X < 1 to 0 >= X.
if (C == 1) {
RHS = LHS;
LHS = DAG.getConstant(0, DL, RHS.getValueType());
More information about the llvm-commits
mailing list