summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-02 19:26:06 +0000
committerChris Lattner <sabre@nondot.org>2005-08-02 19:26:06 +0000
commit6667bdbacad033f7090304fb559889a1ba08eab1 (patch)
tree0a4fa86b65a9aaaec1c56353cddfa8495cb0a9cb /llvm/lib/Target/Alpha/AlphaISelPattern.cpp
parent44060e08718f214c4cc7ad3d717d4fa7b1fac9a5 (diff)
downloadbcm5719-llvm-6667bdbacad033f7090304fb559889a1ba08eab1.tar.gz
bcm5719-llvm-6667bdbacad033f7090304fb559889a1ba08eab1.zip
Update to use the new MathExtras.h support for log2 computation.
Patch contributed by Jim Laskey! llvm-svn: 22594
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelPattern.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index 2697544cf22..9b1619ffced 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -801,20 +801,6 @@ SDOperand AlphaISel::BuildUDIVSequence(SDOperand N) {
return Q;
}
-//From PPC32
-/// ExactLog2 - This function solves for (Val == 1 << (N-1)) and returns N. It
-/// returns zero when the input is not exactly a power of two.
-static unsigned ExactLog2(uint64_t Val) {
- if (Val == 0 || (Val & (Val-1))) return 0;
- unsigned Count = 0;
- while (Val != 1) {
- Val >>= 1;
- ++Count;
- }
- return Count;
-}
-
-
//These describe LDAx
static const int IMM_LOW = -32768;
static const int IMM_HIGH = 32767;
OpenPOWER on IntegriCloud