Skip to content
  1. Aug 14, 2003
  2. Aug 13, 2003
  3. Aug 12, 2003
  4. Aug 05, 2003
  5. Aug 02, 2003
  6. 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
  7. Jul 23, 2003
  8. Jul 22, 2003
  9. Jul 21, 2003
  10. Jul 17, 2003
  11. Jun 26, 2003
  12. Jun 25, 2003
  13. Jun 24, 2003
  14. 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
Loading