[PATCH] D15240: X86: Don't emit SAHF/LAHF for 64-bit targets unless explicitly supported

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 11:53:39 PST 2015


majnemer added inline comments.

================
Comment at: lib/Target/X86/X86Subtarget.cpp:192-202
@@ -191,2 +191,13 @@
 
+#if 1
+  // XXX
+  if (!In64BitMode) {
+    if (!FullFS.empty())
+      FullFS = "+sahf," + FullFS;
+    else
+      FullFS = "+sahf";
+  }
+#endif
+
+
   // Parse features string and set the CPU.
----------------
Looks like some debugging code was left around?


http://reviews.llvm.org/D15240





More information about the llvm-commits mailing list