From: Craig Topper Date: Tue, 6 Aug 2013 06:05:05 +0000 (+0000) Subject: Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=aa0f420567240fda76a57c25cdfd8d49376c0e76;p=oota-llvm.git Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187779 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index b5e138adb3a..ce940ad2db2 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -17721,7 +17721,7 @@ static bool isHorizontalBinOp(SDValue &LHS, SDValue &RHS, bool IsCommutative) { RHS.getOpcode() != ISD::VECTOR_SHUFFLE) return false; - EVT VT = LHS.getValueType(); + MVT VT = LHS.getValueType().getSimpleVT(); assert((VT.is128BitVector() || VT.is256BitVector()) && "Unsupported vector type for horizontal add/sub");