summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2014-10-23 22:40:34 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2014-10-23 22:40:34 +0000
commite05afd4d1e8a19d3a460c8143a983d272a026c15 (patch)
treef81b43fa1e76754160d82e21bb3ff9e808998b43 /llvm/lib/CodeGen/SelectionDAG
parentc91611967f5e72baf192984e6f54e94b42d6572c (diff)
downloadbcm5719-llvm-e05afd4d1e8a19d3a460c8143a983d272a026c15.tar.gz
bcm5719-llvm-e05afd4d1e8a19d3a460c8143a983d272a026c15.zip
Update comment and fix typos in assert message. (NFC)
llvm-svn: 220531
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 3b67b31d9d5..546cac6a350 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -454,11 +454,11 @@ SDValue DAGTypeLegalizer::ScalarizeVecOp_BITCAST(SDNode *N) {
N->getValueType(0), Elt);
}
-/// ScalarizeVecOp_EXTEND - If the value to extend is a vector that needs
-/// to be scalarized, it must be <1 x ty>. Extend the element instead.
+/// ScalarizeVecOp_UnaryOp - If the input is a vector that needs to be
+/// scalarized, it must be <1 x ty>. Do the operation on the element instead.
SDValue DAGTypeLegalizer::ScalarizeVecOp_UnaryOp(SDNode *N) {
assert(N->getValueType(0).getVectorNumElements() == 1 &&
- "Unexected vector type!");
+ "Unexpected vector type!");
SDValue Elt = GetScalarizedVector(N->getOperand(0));
SDValue Op = DAG.getNode(N->getOpcode(), SDLoc(N),
N->getValueType(0).getScalarType(), Elt);
OpenPOWER on IntegriCloud