forked from OSchip/llvm-project
Update comment and fix typos in assert message. (NFC)
llvm-svn: 220531
This commit is contained in:
parent
c91611967f
commit
e05afd4d1e
|
@ -454,11 +454,11 @@ SDValue DAGTypeLegalizer::ScalarizeVecOp_BITCAST(SDNode *N) {
|
||||||
N->getValueType(0), Elt);
|
N->getValueType(0), Elt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ScalarizeVecOp_EXTEND - If the value to extend is a vector that needs
|
/// ScalarizeVecOp_UnaryOp - If the input is a vector that needs to be
|
||||||
/// to be scalarized, it must be <1 x ty>. Extend the element instead.
|
/// scalarized, it must be <1 x ty>. Do the operation on the element instead.
|
||||||
SDValue DAGTypeLegalizer::ScalarizeVecOp_UnaryOp(SDNode *N) {
|
SDValue DAGTypeLegalizer::ScalarizeVecOp_UnaryOp(SDNode *N) {
|
||||||
assert(N->getValueType(0).getVectorNumElements() == 1 &&
|
assert(N->getValueType(0).getVectorNumElements() == 1 &&
|
||||||
"Unexected vector type!");
|
"Unexpected vector type!");
|
||||||
SDValue Elt = GetScalarizedVector(N->getOperand(0));
|
SDValue Elt = GetScalarizedVector(N->getOperand(0));
|
||||||
SDValue Op = DAG.getNode(N->getOpcode(), SDLoc(N),
|
SDValue Op = DAG.getNode(N->getOpcode(), SDLoc(N),
|
||||||
N->getValueType(0).getScalarType(), Elt);
|
N->getValueType(0).getScalarType(), Elt);
|
||||||
|
|
Loading…
Reference in New Issue