From d2aa03a60abea67e652072e5500a474fe0388c7b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 31 Mar 2016 04:37:41 +0000 Subject: [PATCH] [X86] Use MVT instead of EVT in code called after legalization. llvm-svn: 264992 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 4141932..8b0ad77 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -6349,8 +6349,8 @@ static SDValue ExpandHorizontalBinOp(const SDValue &V0, const SDValue &V1, SDLoc DL, SelectionDAG &DAG, unsigned X86Opcode, bool Mode, bool isUndefLO, bool isUndefHI) { - EVT VT = V0.getValueType(); - assert(VT.is256BitVector() && VT == V1.getValueType() && + MVT VT = V0.getSimpleValueType(); + assert(VT.is256BitVector() && VT == V1.getSimpleValueType() && "Invalid nodes in input!"); unsigned NumElts = VT.getVectorNumElements(); @@ -6358,7 +6358,7 @@ static SDValue ExpandHorizontalBinOp(const SDValue &V0, const SDValue &V1, SDValue V0_HI = extract128BitVector(V0, NumElts/2, DAG, DL); SDValue V1_LO = extract128BitVector(V1, 0, DAG, DL); SDValue V1_HI = extract128BitVector(V1, NumElts/2, DAG, DL); - EVT NewVT = V0_LO.getValueType(); + MVT NewVT = V0_LO.getSimpleValueType(); SDValue LO = DAG.getUNDEF(NewVT); SDValue HI = DAG.getUNDEF(NewVT); -- 2.7.4