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

Reid Spencer reid at x10sys.com
Wed Jan 3 09:24:26 PST 2007



Changes in directory llvm/lib/Target/X86:

X86TargetAsmInfo.cpp updated: 1.15 -> 1.16
---
Log message:

Remove two useless bit casts.


---
Diffs of the changes:  (+0 -6)

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


Index: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.15 llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.16
--- llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.15	Wed Jan  3 05:43:14 2007
+++ llvm/lib/Target/X86/X86TargetAsmInfo.cpp	Wed Jan  3 11:24:11 2007
@@ -188,14 +188,8 @@
   Function *Int = M->getOrInsertFunction(IntName, Ty, Ty, (Type*)0);
   
   Value *Op = CI->getOperand(1);
-  if (CI->getOperand(1)->getType() != Ty)
-    Op = new BitCastInst(Op, Ty, Op->getName(), CI);
-  
   Op = new CallInst(Int, Op, CI->getName(), CI);
   
-  if (Op->getType() != CI->getType())
-    Op = new BitCastInst(Op, CI->getType(), Op->getName(), CI);
-  
   CI->replaceAllUsesWith(Op);
   CI->eraseFromParent();
   return true;






More information about the llvm-commits mailing list