diff options
author | Manman Ren <mren@apple.com> | 2012-04-30 22:51:25 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-04-30 22:51:25 +0000 |
commit | 16a76519a5aa0e3a351cfde8e7236119ffd8b7fb (patch) | |
tree | 97a13cf302560765c6b11772e89492122789fbc0 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 7a3afa91ad8f68428373948fc16375e99bff3c6f (diff) |
X86: optimization for -(x != 0)
This patch will optimize -(x != 0) on X86
FROM
cmpl $0x01,%edi
sbbl %eax,%eax
notl %eax
TO
negl %edi
sbbl %eax %eax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
0 files changed, 0 insertions, 0 deletions