mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
37cdad3e59
commit
d82e511aec
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user