Skip to content
  1. Jun 26, 2008
    • Chris Lattner's avatar
      when we know the signbit of an input to uint_to_fp is zero, · b1e66ce3
      Chris Lattner authored
      change it to sint_to_fp on targets where that is cheaper (and
      visaversa of course).  This allows us to compile uint_to_fp to:
      
      _test:
      	movl	4(%esp), %eax
      	shrl	$23, %eax
      	cvtsi2ss	%eax, %xmm0
      	movl	8(%esp), %eax
      	movss	%xmm0, (%eax)
      	ret
      
      instead of:
      
      	.align	3
      LCPI1_0:					##  double
      	.long	0	## double least significant word 4.5036e+15
      	.long	1127219200	## double most significant word 4.5036e+15
      	.text
      	.align	4,0x90
      	.globl	_test
      _test:
      	subl	$12, %esp
      	movl	16(%esp), %eax
      	shrl	$23, %eax
      	movl	%eax, (%esp)
      	movl	$1127219200, 4(%esp)
      	movsd	(%esp), %xmm0
      	subsd	LCPI1_0, %xmm0
      	cvtsd2ss	%xmm0, %xmm0
      	movl	20(%esp), %eax
      	movss	%xmm0, (%eax)
      	addl	$12, %esp
      	ret
      
      llvm-svn: 52747
      b1e66ce3
    • Owen Anderson's avatar
      Remember which MachineOperand we were processing, so we don't have to scan the... · b55675e1
      Owen Anderson authored
      Remember which MachineOperand we were processing, so we don't have to scan the list to find it again later.
      This speeds up live intervals from 0.37s to 0.30s on instcombine.
      
      llvm-svn: 52745
      b55675e1
    • Dan Gohman's avatar
      Fix the text in an assert string. · 39b07db7
      Dan Gohman authored
      llvm-svn: 52744
      39b07db7
  2. Jun 25, 2008
  3. Jun 24, 2008
Loading