mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
remove over-general code.
llvm-svn: 33157
This commit is contained in:
parent
5011520dda
commit
657e08b994
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user