Skip to content

Commit

Permalink
[NFC] Fix erroneous indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
deadalnix committed Sep 30, 2022
1 parent 3f906f0 commit 031a7ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Expand Up @@ -10293,12 +10293,12 @@ SDValue DAGCombiner::foldSelectOfConstants(SDNode *N) {
return NotCond;
}

// select Cond, 0, -1 --> sext (!Cond)
if (C1->isZero() && C2->isAllOnes()) {
SDValue NotCond = DAG.getNOT(DL, Cond, MVT::i1);
NotCond = DAG.getSExtOrTrunc(NotCond, DL, VT);
return NotCond;
}
// select Cond, 0, -1 --> sext (!Cond)
if (C1->isZero() && C2->isAllOnes()) {
SDValue NotCond = DAG.getNOT(DL, Cond, MVT::i1);
NotCond = DAG.getSExtOrTrunc(NotCond, DL, VT);
return NotCond;
}

// Use a target hook because some targets may prefer to transform in the
// other direction.
Expand Down

0 comments on commit 031a7ad

Please sign in to comment.