diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-02 19:26:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-02 19:26:06 +0000 |
| commit | 6667bdbacad033f7090304fb559889a1ba08eab1 (patch) | |
| tree | 0a4fa86b65a9aaaec1c56353cddfa8495cb0a9cb /llvm/lib/Target/Alpha/AlphaISelPattern.cpp | |
| parent | 44060e08718f214c4cc7ad3d717d4fa7b1fac9a5 (diff) | |
| download | bcm5719-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.cpp | 14 |
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; |

