mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
remove over-general code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -179,11 +179,11 @@ bool X86TargetAsmInfo::LowerToBSwap(CallInst *CI) const {
|
|||||||
const char *IntName;
|
const char *IntName;
|
||||||
if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
|
if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
|
||||||
unsigned BitWidth = ITy->getBitWidth();
|
unsigned BitWidth = ITy->getBitWidth();
|
||||||
if (BitWidth > 8 && BitWidth <= 16)
|
if (BitWidth == 16)
|
||||||
IntName = "llvm.bswap.i16";
|
IntName = "llvm.bswap.i16";
|
||||||
else if (BitWidth > 24 && BitWidth <= 32)
|
else if (BitWidth == 32)
|
||||||
IntName = "llvm.bswap.i32";
|
IntName = "llvm.bswap.i32";
|
||||||
else if (BitWidth > 56 && BitWidth <= 64)
|
else if (BitWidth == 64)
|
||||||
IntName = "llvm.bswap.i64";
|
IntName = "llvm.bswap.i64";
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user