projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37cdad3
)
Remove unneeded code I added.
author
Chris Lattner
<sabre@nondot.org>
Mon, 2 Jun 2008 18:39:07 +0000
(18:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 2 Jun 2008 18:39:07 +0000
(18:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51878
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ValueTracking.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ValueTracking.cpp
b/lib/Analysis/ValueTracking.cpp
index 2fe60907fb7cc70a748df18baa998b1f676cdd34..67e4aad4fd5a6a981c9816a61ba88879a1f5888e 100644
(file)
--- a/
lib/Analysis/ValueTracking.cpp
+++ b/
lib/Analysis/ValueTracking.cpp
@@
-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.