1. 11 Apr, 2005 1 commit
    • simonmar's avatar
      [project @ 2005-04-11 08:52:29 by simonmar] · 5ba806d8
      simonmar authored
      When generating a switch for:
      
        case e of
          0 -> A
          1 -> B
      
      instead of generating
      
        if (e < 1) then goto A
        B
      
      generate
      
        if (e >= 1) then goto B
        A
      
      because this helps the NCG to generate better code.  In particular, if
      e is a comparison, then we don't need to reverse the sense of the
      comparison to eliminate the comparse against 1 (the NCG does try to
      reverse the comparison, but floating-point comparisons can't be
      reversed).
      5ba806d8
  2. 10 Apr, 2005 1 commit
  3. 08 Apr, 2005 10 commits
  4. 07 Apr, 2005 9 commits
  5. 06 Apr, 2005 7 commits
  6. 05 Apr, 2005 12 commits