Use movl+xchgl instead of pushl+popl.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31572 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 804ba39..3ac8a38 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -44,10 +44,9 @@
   return false;
 #elif defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)
 #if defined(__GNUC__)
-  asm ("pushl\t%%ebx\n\t"
+  asm ("movl\t%%ebx, %%esi\n\t"
        "cpuid\n\t"
-       "movl\t%%ebx, %%esi\n\t"
-       "popl\t%%ebx"
+       "xchgl\t%%ebx, %%esi\n\t"
        : "=a" (*rEAX),
          "=S" (*rEBX),
          "=c" (*rECX),