Skip to content
  1. Jun 12, 2006
  2. May 18, 2006
  3. May 10, 2006
  4. May 04, 2006
  5. May 02, 2006
  6. Apr 17, 2006
  7. Apr 11, 2006
  8. Apr 07, 2006
  9. Apr 04, 2006
  10. Mar 28, 2006
  11. Mar 27, 2006
  12. Mar 23, 2006
  13. Mar 22, 2006
    • Chris Lattner's avatar
      When possible, custom lower 32-bit SINT_TO_FP to this: · 4a66d694
      Chris Lattner authored
      _foo2:
              extsw r2, r3
              std r2, -8(r1)
              lfd f0, -8(r1)
              fcfid f0, f0
              frsp f1, f0
              blr
      
      instead of this:
      
      _foo2:
              lis r2, ha16(LCPI2_0)
              lis r4, 17200
              xoris r3, r3, 32768
              stw r3, -4(r1)
              stw r4, -8(r1)
              lfs f0, lo16(LCPI2_0)(r2)
              lfd f1, -8(r1)
              fsub f0, f1, f0
              frsp f1, f0
              blr
      
      This speeds up Misc/pi from 2.44s->2.09s with LLC and from 3.01->2.18s
      with llcbeta (16.7% and 38.1% respectively).
      
      llvm-svn: 26943
      4a66d694
  14. Mar 17, 2006
  15. Mar 16, 2006
  16. Mar 13, 2006
    • Chris Lattner's avatar
      For functions that use vector registers, save VRSAVE, mark used · 02e2c18c
      Chris Lattner authored
      registers, and update it on entry to each function, then restore it on exit.
      
      This compiles:
      
      void func(vfloat *a, vfloat *b, vfloat *c) {
              *a = *b * *c + *c;
      }
      
      to this:
      
      _func:
              mfspr r2, 256
              oris r6, r2, 49152
              mtspr 256, r6
              lvx v0, 0, r5
              lvx v1, 0, r4
              vmaddfp v0, v1, v0, v0
              stvx v0, 0, r3
              mtspr 256, r2
              blr
      
      GCC produces this (which has additional stack accesses):
      
      _func:
              mfspr r0,256
              stw r0,-4(r1)
              oris r0,r0,0xc000
              mtspr 256,r0
              lvx v0,0,r5
              lvx v1,0,r4
              lwz r12,-4(r1)
              vmaddfp v0,v0,v1,v0
              stvx v0,0,r3
              mtspr 256,r12
              blr
      
      llvm-svn: 26733
      02e2c18c
  17. Feb 02, 2006
  18. Jan 12, 2006
  19. Jan 09, 2006
  20. Dec 23, 2005
  21. Nov 06, 2005
  22. Oct 18, 2005
  23. Oct 16, 2005
  24. Oct 15, 2005
  25. Oct 02, 2005
Loading