mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Added MachineInstr::isRegTiedToDefOperand to check for two-addressness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -695,7 +695,7 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
|
||||
if (isPhysReg || !usedOutsideBlock) {
|
||||
if (MO.isUse()) {
|
||||
// Don't mark uses that are tied to defs as kills.
|
||||
if (MI->getDesc().getOperandConstraint(idx, TOI::TIED_TO) == -1)
|
||||
if (!MI->isRegTiedToDefOperand(idx))
|
||||
MO.setIsKill(true);
|
||||
} else
|
||||
MO.setIsDead(true);
|
||||
|
Reference in New Issue
Block a user