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 | d724a590e5cc98c3a94cb3c78bce13aeb9311214 (patch) | |
tree | e2b766d51222dc9f7212a5968765a6f75d730494 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | b21c52eac8ecfd332e83d87ec20368fdfd242102 (diff) | |
download | llvm-d724a590e5cc98c3a94cb3c78bce13aeb9311214.zip llvm-d724a590e5cc98c3a94cb3c78bce13aeb9311214.tar.gz llvm-d724a590e5cc98c3a94cb3c78bce13aeb9311214.tar.bz2 |
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.
llvm-svn: 131070
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions