Skip to content

Commit

Permalink
fixup! clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
topperc committed Mar 6, 2024
1 parent fc7fcdb commit 354d1fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7290,14 +7290,14 @@ static SDValue combineSelectToBinOp(SDNode *N, SelectionDAG &DAG,
// (select x, x, y) -> x | y
// (select !x, x, y) -> x & y
if (std::optional<bool> MatchResult = matchSetCC(LHS, RHS, CC, TrueV)) {
return DAG.getNode(*MatchResult ? ISD::OR : ISD::AND, DL, VT, DAG.getFreeze(TrueV),
DAG.getFreeze(FalseV));
return DAG.getNode(*MatchResult ? ISD::OR : ISD::AND, DL, VT,
DAG.getFreeze(TrueV), DAG.getFreeze(FalseV));
}
// (select x, y, x) -> x & y
// (select !x, y, x) -> x | y
if (std::optional<bool> MatchResult = matchSetCC(LHS, RHS, CC, FalseV)) {
return DAG.getNode(*MatchResult ? ISD::AND : ISD::OR, DL, VT, DAG.getFreeze(TrueV),
DAG.getFreeze(FalseV));
return DAG.getNode(*MatchResult ? ISD::AND : ISD::OR, DL, VT,
DAG.getFreeze(TrueV), DAG.getFreeze(FalseV));
}
}

Expand Down

0 comments on commit 354d1fd

Please sign in to comment.