1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Remove unneeded code I added.

llvm-svn: 51878
This commit is contained in:
Chris Lattner 2008-06-02 18:39:07 +00:00
parent 385b7d76ed
commit 3e1cd5c9bf

View File

@ -565,11 +565,8 @@ 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.