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