[llvm] r287908 - [X86] Size a SmallVector to the worst case mask size for a 512-bit shuffle. NFCI

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 18:29:22 PST 2016


Author: ctopper
Date: Thu Nov 24 20:29:21 2016
New Revision: 287908

URL: http://llvm.org/viewvc/llvm-project?rev=287908&view=rev
Log:
[X86] Size a SmallVector to the worst case mask size for a 512-bit shuffle. NFCI

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

Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=287908&r1=287907&r2=287908&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Thu Nov 24 20:29:21 2016
@@ -1547,7 +1547,7 @@ void X86AsmPrinter::EmitInstruction(cons
 
     const MachineOperand &MaskOp = MI->getOperand(MaskIdx);
     if (auto *C = getConstantFromPool(*MI, MaskOp)) {
-      SmallVector<int, 16> Mask;
+      SmallVector<int, 64> Mask;
       DecodePSHUFBMask(C, Mask);
       if (!Mask.empty())
         OutStreamer->AddComment(getShuffleComment(MI, SrcIdx, SrcIdx, Mask));




More information about the llvm-commits mailing list