forked from OSchip/llvm-project
[RISCV] Fix incorrect parenthese placement in comment. NFC
This commit is contained in:
parent
9f67047cf0
commit
f749b2d9a5
|
@ -9423,9 +9423,9 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
|
||||||
return TrueV;
|
return TrueV;
|
||||||
|
|
||||||
// (select (x in [0,1] == 0), y, (z ^ 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
|
||||||
// (select (x in [0,1] == 0), y, (z | 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);
|
APInt Mask = APInt::getBitsSetFrom(LHS.getValueSizeInBits(), 1);
|
||||||
if (isNullConstant(RHS) && ISD::isIntEqualitySetCC(CCVal) &&
|
if (isNullConstant(RHS) && ISD::isIntEqualitySetCC(CCVal) &&
|
||||||
DAG.MaskedValueIsZero(LHS, Mask)) {
|
DAG.MaskedValueIsZero(LHS, Mask)) {
|
||||||
|
|
Loading…
Reference in New Issue