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:
parent
385b7d76ed
commit
3e1cd5c9bf
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user