OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d6301a
)
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
2fe6090
..
67e4aad
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.