Skip to content
  1. Aug 02, 2003
  2. Jul 24, 2003
    • Chris Lattner's avatar
      Instcombine: (A >> c1) << c2 for signed integers · ab780dfa
      Chris Lattner authored
      llvm-svn: 7295
      ab780dfa
    • Chris Lattner's avatar
      Reorganization of code, no functional changes. · 3204d4ed
      Chris Lattner authored
      Now it shoudl be a bit more efficient
      
      llvm-svn: 7292
      3204d4ed
    • Chris Lattner's avatar
      Allow folding several instructions into casts, which can simplify a lot · dfae8be3
      Chris Lattner authored
      of codes.  For example,
      short kernel (short t1) {
        t1 >>= 8; t1 <<= 8;
        return t1;
      }
      
      became:
      
      short %kernel(short %t1.1) {
              %tmp.3 = shr short %t1.1, ubyte 8               ; <short> [#uses=1]
              %tmp.5 = cast short %tmp.3 to int               ; <int> [#uses=1]
              %tmp.7 = shl int %tmp.5, ubyte 8                ; <int> [#uses=1]
              %tmp.8 = cast int %tmp.7 to short               ; <short> [#uses=1]
              ret short %tmp.8
      }
      
      before, now it becomes:
      short %kernel(short %t1.1) {
              %tmp.3 = shr short %t1.1, ubyte 8               ; <short> [#uses=1]
              %tmp.8 = shl short %tmp.3, ubyte 8              ; <short> [#uses=1]
              ret short %tmp.8
      }
      
      which will become:
      short %kernel(short %t1.1) {
              %tmp.3 = and short %t1.1, 0xFF00
              ret short %tmp.3
      }
      
      This implements cast-set.ll:test4 and test5
      
      llvm-svn: 7290
      dfae8be3
  3. Jul 23, 2003
  4. Jul 22, 2003
  5. Jul 21, 2003
  6. Jul 17, 2003
  7. Jun 26, 2003
  8. Jun 25, 2003
  9. Jun 24, 2003
  10. Jun 23, 2003
    • Chris Lattner's avatar
      Implement new transforms: · 55d4bda8
      Chris Lattner authored
        Replace (cast (sub A, B) to bool) -> (setne A, B)
        Replace (cast (add A, B) to bool) -> (setne A, -B)
      
      llvm-svn: 6873
      55d4bda8
  11. Jun 22, 2003
  12. Jun 19, 2003
  13. Jun 17, 2003
  14. Jun 16, 2003
    • Chris Lattner's avatar
      Fix bug: ADCE/2003-06-11-InvalidCFG.ll · dc62f1e0
      Chris Lattner authored
      This was because we were deleting large chunks of functions without an exit block, because the post-dominance
      information was not useful.  This broke crafty and twolf.
      
      llvm-svn: 6698
      dc62f1e0
  15. Jun 05, 2003
  16. Jun 04, 2003
  17. Jun 01, 2003
  18. May 30, 2003
Loading