projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb93931
)
remove over-general code.
author
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 23:28:32 +0000
(23:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 12 Jan 2007 23:28:32 +0000
(23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33157
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86TargetAsmInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86TargetAsmInfo.cpp
b/lib/Target/X86/X86TargetAsmInfo.cpp
index 638ced64a043bd36c9afdba2deff4dff1163b619..7371161b96d450f4ef67bed34ed7291bf6cd9db6 100644
(file)
--- a/
lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/
lib/Target/X86/X86TargetAsmInfo.cpp
@@
-179,11
+179,11
@@
bool X86TargetAsmInfo::LowerToBSwap(CallInst *CI) const {
const char *IntName;
if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
unsigned BitWidth = ITy->getBitWidth();
- if (BitWidth
> 8 && BitWidth <
= 16)
+ if (BitWidth
=
= 16)
IntName = "llvm.bswap.i16";
- else if (BitWidth
> 24 && BitWidth <
= 32)
+ else if (BitWidth
=
= 32)
IntName = "llvm.bswap.i32";
- else if (BitWidth
> 56 && BitWidth <
= 64)
+ else if (BitWidth
=
= 64)
IntName = "llvm.bswap.i64";
else
return false;