1. Make more use of getLowBitsSet/getHighBitsSet.
authorZhou Sheng <zhousheng00@gmail.com>
Wed, 28 Mar 2007 15:02:20 +0000 (15:02 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Wed, 28 Mar 2007 15:02:20 +0000 (15:02 +0000)
commite9e03f6b7649dc89daba3fb306184fb4e83f759d
treefd18f7a1c9afb9c64c6445c17764de7bb6dbf8a4
parent9dea3a340a8e3db7eab92ea78c20e317ac4c2545
1. Make more use of getLowBitsSet/getHighBitsSet.
2. Use APInt[] instead of "X & SignBit".
3. Clean up some codes.
4. Make the expression like "ShiftAmt = ShiftAmtC->getZExtValue()" safe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35424 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp