Remove two useless bit casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-01-03 17:24:11 +00:00
parent 0a516f926f
commit f54ad97a4e

View File

@ -188,14 +188,8 @@ bool X86TargetAsmInfo::LowerToBSwap(CallInst *CI) const {
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;