OSDN Git Service

Remove unneeded check
authorChris Lattner <sabre@nondot.org>
Tue, 4 May 2004 19:35:11 +0000 (19:35 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 May 2004 19:35:11 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index da96813..da2175b 100644 (file)
@@ -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;
   }
index da96813..da2175b 100644 (file)
@@ -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;
   }