summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-06 02:11:56 +0000
committerChris Lattner <sabre@nondot.org>2007-01-06 02:11:56 +0000
commitc343a9978696739dbaec9bd4757d9830e376c609 (patch)
tree24d20da6169d1d5a220f240b0dae6ea51570faa8 /llvm/lib/Transforms
parent400f959a0c0ba98cfe18105d001796607dd63f6c (diff)
downloadbcm5719-llvm-c343a9978696739dbaec9bd4757d9830e376c609.tar.gz
bcm5719-llvm-c343a9978696739dbaec9bd4757d9830e376c609.zip
this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
is only called on integers. llvm-svn: 32949
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 10e1c059afe..9bdf0d8d383 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -388,10 +388,6 @@ static bool ValueRequiresCast(Instruction::CastOps opcode, const Value *V,
const Type *Ty, TargetData *TD) {
if (V->getType() == Ty || isa<Constant>(V)) return false;
- // If this is a noop cast, it isn't real codegen.
- if (V->getType()->canLosslesslyBitCastTo(Ty))
- return false;
-
// If this is another cast that can be eliminated, it isn't codegen either.
if (const CastInst *CI = dyn_cast<CastInst>(V))
if (isEliminableCastPair(CI, opcode, Ty, TD))
OpenPOWER on IntegriCloud