summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 11:21:04 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 11:21:04 +0000
commit319bb399233d3ee67233aa29235c8ad2148fb77d (patch)
treeac11f0df3196f531c3b20fefd404ec798fdc7781 /lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent8b7c89f2d49dbce6832ba89b991a7134769e84fc (diff)
downloadllvm-319bb399233d3ee67233aa29235c8ad2148fb77d.tar.gz
llvm-319bb399233d3ee67233aa29235c8ad2148fb77d.tar.bz2
llvm-319bb399233d3ee67233aa29235c8ad2148fb77d.tar.xz
Change TargetLowering::getTypeToPromoteTo to take and return MVTs,
instead of EVTs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170529 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());