summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-14 22:58:02 +0000
committerDan Gohman <gohman@apple.com>2007-06-14 22:58:02 +0000
commit5c4413120f8e3b7645d4cdf98124f28a2019cbb1 (patch)
treeb66b342811530070dd8db6655b6c6ff20ac0efc4 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent616627b002fb5735aee4d855dbe9445a26eb5ae8 (diff)
downloadbcm5719-llvm-5c4413120f8e3b7645d4cdf98124f28a2019cbb1.tar.gz
bcm5719-llvm-5c4413120f8e3b7645d4cdf98124f28a2019cbb1.zip
Rename MVT::getVectorBaseType to MVT::getVectorElementType.
llvm-svn: 37579
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 1dac2ca1ef8..8cc40363479 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1809,7 +1809,7 @@ SDOperand DAGCombiner::visitXOR(SDNode *N) {
return DAG.getConstant(0, VT);
} else if (!AfterLegalize || TLI.isOperationLegal(ISD::BUILD_VECTOR, VT)) {
// Produce a vector of zeros.
- SDOperand El = DAG.getConstant(0, MVT::getVectorBaseType(VT));
+ SDOperand El = DAG.getConstant(0, MVT::getVectorElementType(VT));
std::vector<SDOperand> Ops(MVT::getVectorNumElements(VT), El);
return DAG.getNode(ISD::BUILD_VECTOR, VT, &Ops[0], Ops.size());
}
OpenPOWER on IntegriCloud