[llvm] r218362 - [x86] Bypass the shuffle mask comment generation when not using verbose

Chandler Carruth chandlerc at gmail.com
Tue Sep 23 20:06:34 PDT 2014


Author: chandlerc
Date: Tue Sep 23 22:06:34 2014
New Revision: 218362

URL: http://llvm.org/viewvc/llvm-project?rev=218362&view=rev
Log:
[x86] Bypass the shuffle mask comment generation when not using verbose
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.

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=218362&r1=218361&r2=218362&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Tue Sep 23 22:06:34 2014
@@ -1121,6 +1121,8 @@ void X86AsmPrinter::EmitInstruction(cons
   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!");





More information about the llvm-commits mailing list