Skip to content

Commit 47f99d2

Browse files
committed
[SelectionDAG] GetDemandedBits - remove ANY_EXTEND handling
Rely on SimplifyMultipleUseDemandedBits fallback instead.
1 parent b065902 commit 47f99d2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,19 +2226,6 @@ SDValue SelectionDAG::GetDemandedBits(SDValue V, const APInt &DemandedBits,
22262226
}
22272227
break;
22282228
}
2229-
case ISD::ANY_EXTEND: {
2230-
SDValue Src = V.getOperand(0);
2231-
unsigned SrcBitWidth = Src.getScalarValueSizeInBits();
2232-
// Being conservative here - only peek through if we only demand bits in the
2233-
// non-extended source (even though the extended bits are technically
2234-
// undef).
2235-
if (DemandedBits.getActiveBits() > SrcBitWidth)
2236-
break;
2237-
APInt SrcDemandedBits = DemandedBits.trunc(SrcBitWidth);
2238-
if (SDValue DemandedSrc = GetDemandedBits(Src, SrcDemandedBits))
2239-
return getNode(ISD::ANY_EXTEND, SDLoc(V), V.getValueType(), DemandedSrc);
2240-
break;
2241-
}
22422229
}
22432230
return SDValue();
22442231
}

0 commit comments

Comments
 (0)