diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-06 02:11:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-06 02:11:56 +0000 |
commit | 80c6c3bbff5ad6af8e4f5903279fec7fb0c798f6 (patch) | |
tree | 108755836005eea1644a07f37e7cde6d1ad31fb1 | |
parent | ec47992f5ca8572c7ae2f52c60fbcbe10552ef17 (diff) |
this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
is only called on integers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 10e1c059af..9bdf0d8d38 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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)) |