[llvm] r187779 - Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types.

Craig Topper craig.topper at gmail.com
Mon Aug 5 23:05:05 PDT 2013


Author: ctopper
Date: Tue Aug  6 01:05:05 2013
New Revision: 187779

URL: http://llvm.org/viewvc/llvm-project?rev=187779&view=rev
Log:
Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=187779&r1=187778&r2=187779&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Aug  6 01:05:05 2013
@@ -17721,7 +17721,7 @@ static bool isHorizontalBinOp(SDValue &L
       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");





More information about the llvm-commits mailing list