[llvm] r251745 - [X86] Convert to MVT instead of calling EVT functions since we already know the type is simple. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 31 11:14:18 PDT 2015


Author: ctopper
Date: Sat Oct 31 13:14:17 2015
New Revision: 251745

URL: http://llvm.org/viewvc/llvm-project?rev=251745&view=rev
Log:
[X86] Convert to MVT instead of calling EVT functions since we already know the type is simple. NFC

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=251745&r1=251744&r2=251745&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 31 13:14:17 2015
@@ -20324,11 +20324,11 @@ X86TargetLowering::isShuffleMaskLegal(co
     return false;
 
   // Not for i1 vectors
-  if (VT.getScalarType() == MVT::i1)
+  if (VT.getSimpleVT().getScalarType() == MVT::i1)
     return false;
 
   // Very little shuffling can be done for 64-bit vectors right now.
-  if (VT.getSizeInBits() == 64)
+  if (VT.getSimpleVT().getSizeInBits() == 64)
     return false;
 
   // We only care that the types being shuffled are legal. The lowering can




More information about the llvm-commits mailing list