[X86] Convert to MVT instead of calling EVT functions since we already know the type...
authorCraig Topper <craig.topper@gmail.com>
Sat, 31 Oct 2015 18:14:17 +0000 (18:14 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 31 Oct 2015 18:14:17 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251745 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 1733172cddaaf1c98f35808a9a18327024127086..c663a53c9948c088fceea6276bf17e728ea0d0eb 100644 (file)
@@ -20324,11 +20324,11 @@ X86TargetLowering::isShuffleMaskLegal(const SmallVectorImpl<int> &M,
     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