mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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:
parent
0a516f926f
commit
f54ad97a4e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user