Remove unneeded code I added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51878 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-06-02 18:39:07 +00:00
parent 37cdad3e59
commit d82e511aec

View File

@ -565,12 +565,9 @@ unsigned llvm::ComputeNumSignBits(Value *V, TargetData *TD, unsigned Depth) {
unsigned Tmp, Tmp2;
unsigned FirstAnswer = 1;
if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
if (CI->getValue().isNegative())
return CI->getValue().countLeadingOnes();
return CI->getValue().countLeadingZeros();
}
// Note that ConstantInt is handled by the general ComputeMaskedBits case
// below.
if (Depth == 6)
return 1; // Limit search depth.