[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetAsmInfo.cpp

Chris Lattner sabre at nondot.org
Fri Jan 12 15:28:48 PST 2007



Changes in directory llvm/lib/Target/X86:

X86TargetAsmInfo.cpp updated: 1.20 -> 1.21
---
Log message:

remove over-general code.


---
Diffs of the changes:  (+3 -3)

 X86TargetAsmInfo.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.20 llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.21
--- llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.20	Fri Jan 12 17:22:14 2007
+++ llvm/lib/Target/X86/X86TargetAsmInfo.cpp	Fri Jan 12 17:28:32 2007
@@ -179,11 +179,11 @@
   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;






More information about the llvm-commits mailing list