diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-12 23:28:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-12 23:28:32 +0000 |
commit | 286bf46a23c0c066b12de1d89e750e1ffcc1e05b (patch) | |
tree | ec32009dc1aa184d9467af671c1e7f22215ab998 | |
parent | fb939319398aa4a9fbb65d0c00d9eaf6d0dd182b (diff) |
remove over-general code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33157 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 638ced64a0..7371161b96 100644 --- 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; |