From c343a9978696739dbaec9bd4757d9830e376c609 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 6 Jan 2007 02:11:56 +0000 Subject: this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast is only called on integers. llvm-svn: 32949 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp') 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(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(V)) if (isEliminableCastPair(CI, opcode, Ty, TD)) -- cgit v1.2.3