summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-11 09:54:23 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-11 09:54:23 +0000
commitbb2543bb0e38495cd655be3eadcb9dd008ac56d2 (patch)
treed14d142883ef06460fc5142d9f18cb3b56c501dc /lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent204301f0459c1deb6c535723760c848ba2fcd42b (diff)
downloadllvm-bb2543bb0e38495cd655be3eadcb9dd008ac56d2.tar.gz
llvm-bb2543bb0e38495cd655be3eadcb9dd008ac56d2.tar.bz2
llvm-bb2543bb0e38495cd655be3eadcb9dd008ac56d2.tar.xz
Change TargetLowering::getTypeToPromoteTo to take and return MVTs,
instead of EVTs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index d104abbd64..de6bbe396e 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -293,10 +293,10 @@ SDValue VectorLegalizer::PromoteVectorOp(SDValue Op) {
// Vector "promotion" is basically just bitcasting and doing the operation
// in a different type. For example, x86 promotes ISD::AND on v2i32 to
// v1i64.
- EVT VT = Op.getValueType();
+ MVT VT = Op.getSimpleValueType();
assert(Op.getNode()->getNumValues() == 1 &&
"Can't promote a vector with multiple results!");
- EVT NVT = TLI.getTypeToPromoteTo(Op.getOpcode(), VT);
+ MVT NVT = TLI.getTypeToPromoteTo(Op.getOpcode(), VT);
DebugLoc dl = Op.getDebugLoc();
SmallVector<SDValue, 4> Operands(Op.getNumOperands());