mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-11 10:31:40 +00:00
Re-enable isel kill flags, now that the local allocator is ignoring them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e62b4ef14
commit
2131e2a75f
@ -296,7 +296,6 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
// If this value has only one use, that use is a kill. This is a
|
||||
// conservative approximation. Tied operands are never killed, so we need
|
||||
// to check that. And that means we need to determine the index of the
|
||||
@ -307,9 +306,6 @@ InstrEmitter::AddRegisterOperand(MachineInstr *MI, SDValue Op,
|
||||
--Idx;
|
||||
bool isTied = MI->getDesc().getOperandConstraint(Idx, TOI::TIED_TO) != -1;
|
||||
bool isKill = Op.hasOneUse() && !isTied && !IsDebug;
|
||||
#else
|
||||
bool isKill = false;
|
||||
#endif
|
||||
|
||||
MI->addOperand(MachineOperand::CreateReg(VReg, isOptDef,
|
||||
false/*isImp*/, isKill,
|
||||
|
Loading…
x
Reference in New Issue
Block a user