projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a516f9
)
Remove two useless bit casts.
author
Reid Spencer
<rspencer@reidspencer.com>
Wed, 3 Jan 2007 17:24:11 +0000
(17:24 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Wed, 3 Jan 2007 17:24:11 +0000
(17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32839
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86TargetAsmInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86TargetAsmInfo.cpp
b/lib/Target/X86/X86TargetAsmInfo.cpp
index 6e95e89e8e01c91c33fa228e2daa3a67bd8344b6..4a0c1e78c6db1f91d3d99745cfec2fdd65c96b1d 100644
(file)
--- a/
lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/
lib/Target/X86/X86TargetAsmInfo.cpp
@@
-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;