From: Chris Lattner Date: Tue, 4 May 2004 19:35:11 +0000 (+0000) Subject: Remove unneeded check X-Git-Tag: android-x86-6.0-r1~1003^2~55398 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bbc130d1107aedc3a919f7ec794d9236c09d4bad;p=android-x86%2Fexternal-llvm.git Remove unneeded check git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13355 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index da96813b128..da2175bbd43 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -2180,7 +2180,6 @@ static unsigned ExactLog2(unsigned Val) { if (Val == 0 || (Val & (Val-1))) return 0; unsigned Count = 0; while (Val != 1) { - if (Val & 1) return 0; Val >>= 1; ++Count; } diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index da96813b128..da2175bbd43 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -2180,7 +2180,6 @@ static unsigned ExactLog2(unsigned Val) { if (Val == 0 || (Val & (Val-1))) return 0; unsigned Count = 0; while (Val != 1) { - if (Val & 1) return 0; Val >>= 1; ++Count; }