[llvm-commits] [PATCH] optimization of -(x != 0) to use neg in X86

manman ren mren at apple.com
Fri Apr 27 18:03:22 PDT 2012


This patch will optimize -(x != 0) on X86
FROM 
cmpl	$0x01,%edi
sbbl	%eax,%eax
notl	%eax
TO
negl %edi
sbbl %eax %eax

Please review & provide feedback,
Thanks,
Manman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sext_ne.patch
Type: application/octet-stream
Size: 1948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120427/7e2367df/attachment.obj>
-------------- next part --------------




More information about the llvm-commits mailing list