[llvm] f749b2d - [RISCV] Fix incorrect parenthese placement in comment. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 17:20:24 PDT 2022
Author: Craig Topper
Date: 2022-10-07T17:16:38-07:00
New Revision: f749b2d9a58b031271ec92afbef726112b34705a
URL: https://github.com/llvm/llvm-project/commit/f749b2d9a58b031271ec92afbef726112b34705a
DIFF: https://github.com/llvm/llvm-project/commit/f749b2d9a58b031271ec92afbef726112b34705a.diff
LOG: [RISCV] Fix incorrect parenthese placement in comment. NFC
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 7fb27ffd10040..766a32ab30628 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -9423,9 +9423,9 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
return TrueV;
// (select (x in [0,1] == 0), y, (z ^ y) ) -> (-x & z ) ^ y
- // (select (x in [0,1] != 0), (z ^ y) ), y -> (-x & z ) ^ y
+ // (select (x in [0,1] != 0), (z ^ y), y ) -> (-x & z ) ^ y
// (select (x in [0,1] == 0), y, (z | y) ) -> (-x & z ) | y
- // (select (x in [0,1] != 0), (z | y) ), y -> (-x & z ) | y
+ // (select (x in [0,1] != 0), (z | y), y ) -> (-x & z ) | y
APInt Mask = APInt::getBitsSetFrom(LHS.getValueSizeInBits(), 1);
if (isNullConstant(RHS) && ISD::isIntEqualitySetCC(CCVal) &&
DAG.MaskedValueIsZero(LHS, Mask)) {
More information about the llvm-commits
mailing list