[RISCV] Fix incorrect parenthese placement in comment. NFC

This commit is contained in:
Craig Topper 2022-10-07 17:16:38 -07:00
parent 9f67047cf0
commit f749b2d9a5
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {