From f749b2d9a58b031271ec92afbef726112b34705a Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 7 Oct 2022 17:16:38 -0700 Subject: [PATCH] [RISCV] Fix incorrect parenthese placement in comment. NFC --- llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index 7fb27ffd1004..766a32ab3062 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)) {