[llvm-commits] [llvm] r153027 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Craig Topper craig.topper at gmail.com
Sun Mar 18 15:50:11 PDT 2012


Author: ctopper
Date: Sun Mar 18 17:50:10 2012
New Revision: 153027

URL: http://llvm.org/viewvc/llvm-project?rev=153027&view=rev
Log:
isCommutedMOVLMask should only look at 128-bit vectors to match isMOVLMask.

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=153027&r1=153026&r2=153027&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Mar 18 17:50:10 2012
@@ -3712,6 +3712,8 @@
 static bool isCommutedMOVLMask(ArrayRef<int> Mask, EVT VT,
                                bool V2IsSplat = false, bool V2IsUndef = false) {
   unsigned NumOps = VT.getVectorNumElements();
+  if (VT.getSizeInBits() == 256)
+    return false;
   if (NumOps != 2 && NumOps != 4 && NumOps != 8 && NumOps != 16)
     return false;
 





More information about the llvm-commits mailing list