Skip to content
  1. Apr 23, 2009
  2. Apr 21, 2009
  3. Apr 18, 2009
  4. Apr 16, 2009
    • Dan Gohman's avatar
      Expand GEPs in ScalarEvolution expressions. SCEV expressions can now · 0a40ad93
      Dan Gohman authored
      have pointer types, though in contrast to C pointer types, SCEV
      addition is never implicitly scaled. This not only eliminates the
      need for special code like IndVars' EliminatePointerRecurrence
      and LSR's own GEP expansion code, it also does a better job because
      it lets the normal optimizations handle pointer expressions just
      like integer expressions.
      
      Also, since LLVM IR GEPs can't directly index into multi-dimensional
      VLAs, moving the GEP analysis out of client code and into the SCEV
      framework makes it easier for clients to handle multi-dimensional
      VLAs the same way as other arrays.
      
      Some existing regression tests show improved optimization.
      test/CodeGen/ARM/2007-03-13-InstrSched.ll in particular improved to
      the point where if-conversion started kicking in; I turned it off
      for this test to preserve the intent of the test.
      
      llvm-svn: 69258
      0a40ad93
    • Dale Johannesen's avatar
      Eliminate zext over (iv | const) or (signed iv), · a71daa83
      Dale Johannesen authored
      and sext over (iv | const), if a longer iv is
      available.  Allow expressions to have more than
      one zext/sext parent.  All from OpenSSL.
      
      llvm-svn: 69241
      a71daa83
  5. Apr 15, 2009
  6. Feb 24, 2009
  7. Feb 23, 2009
  8. Feb 18, 2009
  9. Feb 17, 2009
  10. Feb 16, 2009
  11. Feb 14, 2009
  12. Feb 12, 2009
    • Dan Gohman's avatar
      Teach IndVarSimplify to optimize code using the C "int" type for · eb6be650
      Dan Gohman authored
      loop induction on LP64 targets. When the induction variable is
      used in addressing, IndVars now is usually able to inserst a
      64-bit induction variable and eliminates the sign-extending cast.
      This is also useful for code using C "short" types for
      induction variables on targets with 32-bit addressing.
      
      Inserting a wider induction variable is easy; the tricky part is
      determining when trunc(sext(i)) expressions are no-ops. This
      requires range analysis of the loop trip count. A common case is
      when the original loop iteration starts at 0 and exits when the
      induction variable is signed-less-than a fixed value; this case
      is now handled.
      
      This replaces IndVarSimplify's OptimizeCanonicalIVType. It was
      doing the same optimization, but it was limited to loops with
      constant trip counts, because it was running after the loop
      rewrite, and the information about the original induction
      variable is lost by that point.
      
      Rename ScalarEvolution's executesAtLeastOnce to
      isLoopGuardedByCond, generalize it to be able to test for
      ICMP_NE conditions, and move it to be a public function so that
      IndVars can use it.
      
      llvm-svn: 64407
      eb6be650
  13. Nov 26, 2008
  14. Nov 18, 2008
  15. Nov 17, 2008
  16. Nov 16, 2008
  17. Nov 03, 2008
  18. Oct 23, 2008
    • Daniel Dunbar's avatar
      Change create*Pass factory functions to return Pass* instead of · 7f39e2d8
      Daniel Dunbar authored
      LoopPass*.
       - Although less precise, this means they can be used in clients
         without RTTI (who would otherwise need to include LoopPass.h, which
         eventually includes things using dynamic_cast). This was the
         simplest solution that presented itself, but I am happy to use a
         better one if available.
      
      llvm-svn: 58010
      7f39e2d8
  19. Sep 10, 2008
  20. Sep 09, 2008
  21. Sep 05, 2008
  22. Sep 04, 2008
  23. Aug 06, 2008
  24. Jun 22, 2008
  25. Jun 13, 2008
  26. May 23, 2008
Loading