Skip to content
  1. Apr 02, 2007
  2. Apr 01, 2007
  3. Mar 31, 2007
  4. Mar 30, 2007
  5. Mar 29, 2007
  6. Mar 28, 2007
  7. Mar 27, 2007
  8. Mar 26, 2007
  9. Mar 25, 2007
    • Reid Spencer's avatar
      For PR1271: · 52830327
      Reid Spencer authored
      Remove a use of getLowBitsSet that caused the mask used for replacement of
      shl/lshr pairs with an AND instruction to be computed incorrectly. Its not
      clear exactly why this is the case. This solves the disappearing shifts
      problem, but it doesn't fix Regression/C/2003-05-21-UnionBitFields. It
      seems there is more going on.
      
      llvm-svn: 35342
      52830327
    • Chris Lattner's avatar
      implement Transforms/InstCombine/cast2.ll:test3 and PR1263 · 9bf53ffa
      Chris Lattner authored
      llvm-svn: 35341
      9bf53ffa
    • Reid Spencer's avatar
      Some cleanup from review: · 624766f8
      Reid Spencer authored
      * Don't assume shift amounts are <= 64 bits
      * Avoid creating an extra APInt in SubOne and AddOne by using -- and ++
      * Add another use of getLowBitsSet
      * Convert a series of if statements to a switch
      
      llvm-svn: 35339
      624766f8
    • Reid Spencer's avatar
      Refactor several ConstantExpr::getXXX calls with ConstantInt arguments · 80263aad
      Reid Spencer authored
      using the facilities of APInt. While this duplicates a tiny fraction of
      the constant folding code, it also makes the code easier to read and
      avoids large ConstantExpr overhead for simple, known computations.
      
      llvm-svn: 35335
      80263aad
    • Zhou Sheng's avatar
      1. Avoid unnecessary APInt construction if possible. · 222d5ebf
      Zhou Sheng authored
      2. Use isStrictlyPositive() instead of isPositive() in two places where
         they need APInt value > 0 not only >=0.
      
      llvm-svn: 35333
      222d5ebf
    • Reid Spencer's avatar
      Make more uses of getHighBitsSet and get rid of some pointless & of an · cd99fbdf
      Reid Spencer authored
      APInt with its type mask.
      
      llvm-svn: 35325
      cd99fbdf
    • Reid Spencer's avatar
      More APIntification: · d8aad61d
      Reid Spencer authored
      * Convert the last use of a uint64_t that should have been an APInt.
      * Change ComputeMaskedBits to have a const reference argument for the Mask
        so that recursions don't cause unneeded temporaries. This causes temps
        to be needed in other places (where the mask has to change) but this
        change optimizes for the recursion which is more frequent.
      * Remove two instances of &ing a Mask with getAllOnesValue. Its not
        needed any more because APInt is accurate in its bit computations.
      * Start using the getLowBitsSet and getHighBits set methods on APInt
        instead of shifting. This makes it more clear in the code what is
        going on.
      
      llvm-svn: 35321
      d8aad61d
    • Chris Lattner's avatar
      fix a regression on vector or instructions. · 3a8248f7
      Chris Lattner authored
      llvm-svn: 35314
      3a8248f7
  10. Mar 24, 2007
Loading