diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-05-08 18:36:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-05-08 18:36:07 +0000 |
commit | f51190b6977ec1ae93be83fd109a3f99855bb653 (patch) | |
tree | 937cb7f0499c68d3bceba36bd5b1c4f98a775cf6 /lib/CodeGen/LiveDebugVariables.cpp | |
parent | 4eafe109459eb115f13f1d19c5ff3cb3678e8c7a (diff) |
X86: Add a bunch of peeps for add and sub of SETB.
"b + ((a < b) ? 1 : 0)" compiles into
cmpl %esi, %edi
adcl $0, %esi
instead of
cmpl %esi, %edi
sbbl %eax, %eax
andl $1, %eax
addl %esi, %eax
This saves a register, a false dependency on %eax
(Intel's CPUs still don't ignore it) and it's shorter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions