Clean up codes in ComputeMaskedBits():
authorZhou Sheng <zhousheng00@gmail.com>
Wed, 28 Mar 2007 02:19:03 +0000 (02:19 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Wed, 28 Mar 2007 02:19:03 +0000 (02:19 +0000)
commitaa305ab5e8d624e0578dea69641e0e7b822bf763
tree820e67b03c9b99c9ff4d02cd4299959dab9c118b
parent7aff11a1eddcebe9936e14836cd527c46acde651
Clean up codes in ComputeMaskedBits():
1. Line out nested use of zext/trunc.
2. Make more use of getHighBitsSet/getLowBitsSet.
3. Use APInt[] != 0 instead of "(APInt & SignBit) != 0".

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