Skip to content
  1. Dec 29, 2007
    • Chris Lattner's avatar
      Fold comparisons against a constant nan, and optimize ORD/UNORD · 3b6a8211
      Chris Lattner authored
      comparisons with a constant.  This allows us to compile isnan to:
      
      _foo:
      	fcmpu cr7, f1, f1
      	mfcr r2
      	rlwinm r3, r2, 0, 31, 31
      	blr 
      
      instead of:
      
      LCPI1_0:					;  float
      	.space	4
      _foo:
      	lis r2, ha16(LCPI1_0)
      	lfs f0, lo16(LCPI1_0)(r2)
      	fcmpu cr7, f1, f0
      	mfcr r2
      	rlwinm r3, r2, 0, 31, 31
      	blr 
      
      llvm-svn: 45405
      3b6a8211
    • Chris Lattner's avatar
      this xform is implemented. · 33de0c6e
      Chris Lattner authored
      llvm-svn: 45404
      33de0c6e
    • Chris Lattner's avatar
      Codegen: · 07ccbfa6
      Chris Lattner authored
      as:
      
      _bar:
      	pushl	%esi
      	subl	$8, %esp
      	movl	16(%esp), %esi
      	call	L_foo$stub
      	fstps	(%esi)
      	addl	$8, %esp
      	popl	%esi
      	#FP_REG_KILL
      	ret
      
      instead of:
      
      _bar:
      	pushl	%esi
      	subl	$8, %esp
      	movl	16(%esp), %esi
      	call	L_foo$stub
      	fstpl	(%esi)
      	cvtsd2ss	(%esi), %xmm0
      	movss	%xmm0, (%esi)
      	addl	$8, %esp
      	popl	%esi
      	#FP_REG_KILL
      	ret
      
      llvm-svn: 45401
      07ccbfa6
    • Chris Lattner's avatar
      avoid going through a stack slot to convert from fpstack to xmm reg · 8013bd33
      Chris Lattner authored
      if we are just going to store it back anyway.  This improves things 
      like:
      double foo();
      void bar(double *P) { *P = foo(); }
      
      llvm-svn: 45399
      8013bd33
    • Chris Lattner's avatar
      add a note · 62ba67c0
      Chris Lattner authored
      llvm-svn: 45397
      62ba67c0
  2. Dec 28, 2007
  3. Dec 24, 2007
  4. Dec 22, 2007
  5. Dec 21, 2007
  6. Dec 20, 2007
  7. Dec 18, 2007
  8. Dec 17, 2007
  9. Dec 16, 2007
  10. Dec 15, 2007
  11. Dec 14, 2007
  12. Dec 13, 2007
  13. Dec 12, 2007
  14. Dec 11, 2007
Loading