Skip to content
  1. May 05, 2009
    • Dan Gohman's avatar
      Re-apply 70645, converting ScalarEvolution to use · 48f82222
      Dan Gohman authored
      CallbackVH, with fixes. allUsesReplacedWith need to
      walk the def-use chains and invalidate all users of a
      value that is replaced. SCEVs of users need to be
      recalcualted even if the new value is equivalent. Also,
      make forgetLoopPHIs walk def-use chains, since any
      SCEV that depends on a PHI should be recalculated when
      more information about that PHI becomes available.
      
      llvm-svn: 70927
      48f82222
  2. May 03, 2009
  3. May 02, 2009
  4. Apr 28, 2009
  5. Apr 27, 2009
  6. Apr 23, 2009
  7. Apr 21, 2009
  8. Apr 18, 2009
  9. 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
  10. Apr 15, 2009
  11. Feb 24, 2009
  12. Feb 23, 2009
  13. Feb 18, 2009
  14. Feb 17, 2009
  15. Feb 16, 2009
  16. Feb 14, 2009
  17. 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
  18. Nov 26, 2008
  19. Nov 18, 2008
  20. Nov 17, 2008
  21. Nov 16, 2008
  22. Nov 03, 2008
  23. 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
  24. Sep 10, 2008
  25. Sep 09, 2008
Loading