Skip to content
  1. Aug 04, 2005
    • Chris Lattner's avatar
      Teach loop-reduce to see into nested loops, to pull out immediate values · fc624704
      Chris Lattner authored
      pushed down by SCEV.
      
      In a nested loop case, this allows us to emit this:
      
              lis r3, ha16(L_A$non_lazy_ptr)
              lwz r3, lo16(L_A$non_lazy_ptr)(r3)
              add r2, r2, r3
              li r3, 1
      .LBB_foo_2:     ; no_exit.1
              lfd f0, 8(r2)        ;; Uses offset of 8 instead of 0
              stfd f0, 0(r2)
              addi r4, r3, 1
              addi r2, r2, 8
              cmpwi cr0, r3, 100
              or r3, r4, r4
              bne .LBB_foo_2  ; no_exit.1
      
      instead of this:
      
              lis r3, ha16(L_A$non_lazy_ptr)
              lwz r3, lo16(L_A$non_lazy_ptr)(r3)
              add r2, r2, r3
              addi r3, r3, 8
              li r4, 1
      .LBB_foo_2:     ; no_exit.1
              lfd f0, 0(r3)
              stfd f0, 0(r2)
              addi r5, r4, 1
              addi r2, r2, 8
              addi r3, r3, 8
              cmpwi cr0, r4, 100
              or r4, r5, r5
              bne .LBB_foo_2  ; no_exit.1
      
      llvm-svn: 22639
      fc624704
    • Chris Lattner's avatar
      improve debug output · bb78c97e
      Chris Lattner authored
      llvm-svn: 22638
      bb78c97e
    • Chris Lattner's avatar
      Move from Stage 0 to Stage 1. · db23c74e
      Chris Lattner authored
      Only emit one PHI node for IV uses with identical bases and strides (after
      moving foldable immediates to the load/store instruction).
      
      This implements LoopStrengthReduce/dont_insert_redundant_ops.ll, allowing
      us to generate this PPC code for test1:
      
              or r30, r3, r3
      .LBB_test1_1:   ; Loop
              li r2, 0
              stw r2, 0(r30)
              stw r2, 4(r30)
              bl L_pred$stub
              addi r30, r30, 8
              cmplwi cr0, r3, 0
              bne .LBB_test1_1        ; Loop
      
      instead of this code:
      
              or r30, r3, r3
              or r29, r3, r3
      .LBB_test1_1:   ; Loop
              li r2, 0
              stw r2, 0(r29)
              stw r2, 4(r30)
              bl L_pred$stub
              addi r30, r30, 8        ;; Two iv's with step of 8
              addi r29, r29, 8
              cmplwi cr0, r3, 0
              bne .LBB_test1_1        ; Loop
      
      llvm-svn: 22635
      db23c74e
    • Chris Lattner's avatar
      Rename IVUse to IVUsersOfOneStride, use a struct instead of a pair to · 430d0022
      Chris Lattner authored
      unify some parallel vectors and get field names more descriptive than
      "first" and "second".  This isn't lisp afterall :)
      
      llvm-svn: 22633
      430d0022
  2. Aug 03, 2005
  3. Aug 02, 2005
  4. Jul 30, 2005
  5. Jul 27, 2005
  6. Jul 20, 2005
  7. Jul 19, 2005
  8. Jul 07, 2005
  9. Jun 20, 2005
  10. Jun 18, 2005
  11. Jun 17, 2005
  12. Jun 16, 2005
  13. Jun 15, 2005
  14. Jun 13, 2005
  15. Jun 09, 2005
  16. Jun 04, 2005
  17. May 14, 2005
  18. May 13, 2005
Loading