aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/peep-setb.ll
Commit message (Collapse)AuthorAgeFilesLines
* X86: Add a bunch of peeps for add and sub of SETB.Benjamin Kramer2011-05-081-0/+82
"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