Skip to content
  1. May 20, 2011
  2. May 19, 2011
  3. May 18, 2011
  4. May 17, 2011
  5. May 16, 2011
  6. May 14, 2011
  7. May 11, 2011
  8. May 10, 2011
  9. May 08, 2011
    • Benjamin Kramer's avatar
      X86: Add a bunch of peeps for add and sub of SETB. · d724a590
      Benjamin Kramer authored
      "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
      d724a590
  10. May 06, 2011
  11. May 05, 2011
Loading