Skip to content

Commit

Permalink
[DAGCombine] Remove unused param in combineCarryDiamond(). NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jan 24, 2022
1 parent bb1fe36 commit 9d32847
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Expand Up @@ -3058,9 +3058,8 @@ static SDValue combineADDCARRYDiamond(DAGCombiner &Combiner, SelectionDAG &DAG,
//
// Our goal is to identify A, B, and CarryIn and produce ADDCARRY/SUBCARRY with
// a single path for carry/borrow out propagation:
static SDValue combineCarryDiamond(DAGCombiner &Combiner, SelectionDAG &DAG,
const TargetLowering &TLI, SDValue Carry0,
SDValue Carry1, SDNode *N) {
static SDValue combineCarryDiamond(SelectionDAG &DAG, const TargetLowering &TLI,
SDValue Carry0, SDValue Carry1, SDNode *N) {
if (Carry0.getResNo() != 1 || Carry1.getResNo() != 1)
return SDValue();
unsigned Opcode = Carry0.getOpcode();
Expand Down Expand Up @@ -5879,7 +5878,7 @@ SDValue DAGCombiner::visitAND(SDNode *N) {
if (SDValue Shuffle = XformToShuffleWithZero(N))
return Shuffle;

if (SDValue Combined = combineCarryDiamond(*this, DAG, TLI, N0, N1, N))
if (SDValue Combined = combineCarryDiamond(DAG, TLI, N0, N1, N))
return Combined;

// fold (and (or x, C), D) -> D if (C & D) == D
Expand Down Expand Up @@ -6676,7 +6675,7 @@ SDValue DAGCombiner::visitOR(SDNode *N) {
if (SDValue Combined = visitORLike(N0, N1, N))
return Combined;

if (SDValue Combined = combineCarryDiamond(*this, DAG, TLI, N0, N1, N))
if (SDValue Combined = combineCarryDiamond(DAG, TLI, N0, N1, N))
return Combined;

// Recognize halfword bswaps as (bswap + rotl 16) or (bswap + shl 16)
Expand Down Expand Up @@ -8173,7 +8172,7 @@ SDValue DAGCombiner::visitXOR(SDNode *N) {
if (SimplifyDemandedBits(SDValue(N, 0)))
return SDValue(N, 0);

if (SDValue Combined = combineCarryDiamond(*this, DAG, TLI, N0, N1, N))
if (SDValue Combined = combineCarryDiamond(DAG, TLI, N0, N1, N))
return Combined;

return SDValue();
Expand Down

0 comments on commit 9d32847

Please sign in to comment.