1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +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 Tmp, Tmp2;
unsigned FirstAnswer = 1; unsigned FirstAnswer = 1;
if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { // Note that ConstantInt is handled by the general ComputeMaskedBits case
if (CI->getValue().isNegative()) // below.
return CI->getValue().countLeadingOnes();
return CI->getValue().countLeadingZeros();
}
if (Depth == 6) if (Depth == 6)
return 1; // Limit search depth. return 1; // Limit search depth.