1. Make sure the use of ConstantInt::getZExtValue() for getting shift
authorZhou Sheng <zhousheng00@gmail.com>
Fri, 30 Mar 2007 09:29:48 +0000 (09:29 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Fri, 30 Mar 2007 09:29:48 +0000 (09:29 +0000)
commit0e2d3ac0f8794af9f4502df131f78cea7b8c2518
tree235aaa781b20053c6eef3a1e83239f6484c9ef3f
parent48a3e98c272d673f075c51d078140765fc267eb8
1. Make sure the use of ConstantInt::getZExtValue() for getting shift
   amount is safe.
2. Use new method on ConstantInt instead of (? :) operator.
3. Use new method uge() on ConstantInt to simplify codes.

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