mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
getOperandConstraint returns -1 if the operand does have the specific constraint. This bug was causing excessive spills.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -97,7 +97,7 @@ void VirtRegMap::virtFolded(unsigned VirtReg, MachineInstr *OldMI,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ModRef MRInfo;
|
ModRef MRInfo;
|
||||||
if (TII.getOperandConstraint(OldMI->getOpcode(), OpNo, TOI::TIED_TO)) {
|
if (TII.getOperandConstraint(OldMI->getOpcode(), OpNo, TOI::TIED_TO) != -1) {
|
||||||
// Folded a two-address operand.
|
// Folded a two-address operand.
|
||||||
MRInfo = isModRef;
|
MRInfo = isModRef;
|
||||||
} else if (OldMI->getOperand(OpNo).isDef()) {
|
} else if (OldMI->getOperand(OpNo).isDef()) {
|
||||||
|
Reference in New Issue
Block a user