forked from OSchip/llvm-project
[SelectionDAG] Prevent scalable vector warning from ComputeNumSignBits on extract_vector_elt on a scalable vector.
This commit is contained in:
parent
6ee1f64a2e
commit
4553821815
|
@ -3922,6 +3922,9 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
|
|||
SDValue InVec = Op.getOperand(0);
|
||||
SDValue EltNo = Op.getOperand(1);
|
||||
EVT VecVT = InVec.getValueType();
|
||||
// ComputeNumSignBits not yet implemented for scalable vectors.
|
||||
if (VecVT.isScalableVector())
|
||||
break;
|
||||
const unsigned BitWidth = Op.getValueSizeInBits();
|
||||
const unsigned EltBitWidth = Op.getOperand(0).getScalarValueSizeInBits();
|
||||
const unsigned NumSrcElts = VecVT.getVectorNumElements();
|
||||
|
|
Loading…
Reference in New Issue