mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
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
This commit is contained in:
parent
ec47992f5c
commit
80c6c3bbff
@ -388,10 +388,6 @@ static bool ValueRequiresCast(Instruction::CastOps opcode, const Value *V,
|
|||||||
const Type *Ty, TargetData *TD) {
|
const Type *Ty, TargetData *TD) {
|
||||||
if (V->getType() == Ty || isa<Constant>(V)) return false;
|
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 this is another cast that can be eliminated, it isn't codegen either.
|
||||||
if (const CastInst *CI = dyn_cast<CastInst>(V))
|
if (const CastInst *CI = dyn_cast<CastInst>(V))
|
||||||
if (isEliminableCastPair(CI, opcode, Ty, TD))
|
if (isEliminableCastPair(CI, opcode, Ty, TD))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user