Skip to content
  1. Jul 12, 2010
  2. Jul 10, 2010
    • Duncan Sands's avatar
      The accumulator tail recursion transform claims to work for any associative · 82b21c08
      Duncan Sands authored
      operation, but the way it's implemented requires the operation to also be
      commutative.  So add a check for commutativity (and tweak the corresponding
      comments).  This makes no difference in practice since every associative
      LLVM instruction is also commutative!  Here's an example to show the need
      for commutativity: the accum_recursion.ll testcase calculates the factorial
      function.  Before the transformation the result of a call is
        ((((1*1)*2)*3)...)*x
      while afterwards it is
        (((1*x)*(x-1))...*2)*1
      which clearly requires both associativity and commutativity of * to be equal
      to the original.
      
      llvm-svn: 108056
      82b21c08
  3. Jun 26, 2010
  4. Jun 24, 2010
  5. May 28, 2010
  6. Apr 17, 2010
  7. Apr 16, 2010
  8. Apr 15, 2010
  9. Feb 03, 2010
  10. Jan 31, 2010
  11. Jan 30, 2010
  12. Nov 07, 2009
  13. Sep 02, 2009
  14. Aug 13, 2009
  15. Jun 19, 2009
  16. May 06, 2009
  17. Sep 04, 2008
  18. Jun 14, 2008
  19. May 15, 2008
  20. May 13, 2008
  21. Apr 06, 2008
  22. Mar 11, 2008
  23. Feb 20, 2008
  24. Dec 29, 2007
  25. Sep 10, 2007
  26. May 06, 2007
  27. May 03, 2007
  28. May 02, 2007
  29. May 01, 2007
  30. Mar 22, 2007
  31. Feb 11, 2007
  32. Feb 06, 2007
  33. Dec 19, 2006
Loading