summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-04 19:35:11 +0000
committerChris Lattner <sabre@nondot.org>2004-05-04 19:35:11 +0000
commitc6f601310f34847f31af201ec4e4fedccd507144 (patch)
tree83b8722adca50e9ba38ddcffc3cfe84cb2301664
parent22df9a59b43ce7e597506b283950f451074fba24 (diff)
downloadbcm5719-llvm-c6f601310f34847f31af201ec4e4fedccd507144.tar.gz
bcm5719-llvm-c6f601310f34847f31af201ec4e4fedccd507144.zip
Remove unneeded check
llvm-svn: 13355
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index da96813b128..da2175bbd43 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud