diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-04 19:35:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-04 19:35:11 +0000 |
commit | bbc130d1107aedc3a919f7ec794d9236c09d4bad (patch) | |
tree | 0934fa29207f1453f128cabe5a7f6123ce0e15b9 /lib | |
parent | c8af02c403c1547c7d66aa3add3c8a2116d3d26e (diff) | |
download | external_llvm-bbc130d1107aedc3a919f7ec794d9236c09d4bad.zip external_llvm-bbc130d1107aedc3a919f7ec794d9236c09d4bad.tar.gz external_llvm-bbc130d1107aedc3a919f7ec794d9236c09d4bad.tar.bz2 |
Remove unneeded check
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 1 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index da96813..da2175b 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 da96813..da2175b 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; } |