Skip to content
  1. May 11, 2011
  2. May 10, 2011
  3. May 09, 2011
  4. 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
  5. May 07, 2011
  6. May 06, 2011
  7. May 05, 2011
  8. May 04, 2011
  9. May 03, 2011
  10. May 02, 2011
Loading