[PATCH] x86 NaCl: Emit LAHF/SAHF instead of PUSHF/POPF

JF Bastien jfb at chromium.org
Fri Dec 19 09:02:55 PST 2014


CALL is now preceded by MOV since @bar takes arguments.

Re-running the NaCl tests, only i386 works. The -pre-RA-sched=fast version fails, and so do both x86-64 versions, because the calling convention and register allocator collude to change AX's liveness from one version to another. I could have 2 CHECK tests for i386, and 1 for x86-64.


http://reviews.llvm.org/D6629

Files:
  lib/Target/X86/X86InstrInfo.cpp
  test/CodeGen/X86/cmpxchg-clobber-flags.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6629.17497.patch
Type: text/x-patch
Size: 7236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141219/7df0c76d/attachment.bin>


More information about the llvm-commits mailing list