mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
is only called on integers. llvm-svn: 32949
This commit is contained in:
parent
3155b15453
commit
7a0046dc65
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user