]> granicus.if.org Git - llvm/commitdiff
[x86] Bypass the shuffle mask comment generation when not using verbose
authorChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 03:06:34 +0000 (03:06 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 03:06:34 +0000 (03:06 +0000)
asm. This can be somewhat expensive and there is no reason to do it
outside of tests or debugging sessions. I'm also likely to make it
significantly more expensive to support more styles of shuffles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218362 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86MCInstLower.cpp

index e6f060573776ef4bb54ce9ec0f9dad07c3abeb2d..3c5c3c9127c8ed045a751324945d0aad4be2062e 100644 (file)
@@ -1121,6 +1121,8 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) {
   case X86::VPERMILPDrm:
   case X86::VPERMILPSYrm:
   case X86::VPERMILPDYrm: {
+    if (!OutStreamer.isVerboseAsm())
+      break;
     // All of these instructions accept a constant pool operand as their fifth.
     assert(MI->getNumOperands() > 5 &&
            "We should always have at least 5 operands!");