1. Remove redundant calls to clearUsedBits().
authorReid Spencer <rspencer@reidspencer.com>
Mon, 26 Feb 2007 07:44:38 +0000 (07:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 26 Feb 2007 07:44:38 +0000 (07:44 +0000)
commit47fbe9e00cebf2c18e9d967f308de142db4afc67
tree7e6d8b8a38d3f568378079bd405839cb57ba03dc
parentcc7b07a0ff8311ae438bb172f54c5824194e7f8d
1. Remove redundant calls to clearUsedBits().
2. Fix countTrailingZeros to use a faster algorithm.
3. Simplify sext() slightly by using isNegative().
4. Implement ashr using word-at-a-time logic instead of bit-at-a-time
5. Rename locals named isNegative so they don't clash with method name.
6. Fix fromString to compute negated value correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp