mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Use the TargetInstrDescr to determine the number of operands
that should be checked for the TIED_TO attribute instead of using CountOperands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
31fdedde04
commit
3b66555c53
@ -149,7 +149,7 @@ void ScheduleDAGRRList::CommuteNodesToReducePressure() {
|
||||
unsigned Opc = SU->Node->getTargetOpcode();
|
||||
const TargetInstrDesc &TID = TII->get(Opc);
|
||||
unsigned NumRes = TID.getNumDefs();
|
||||
unsigned NumOps = CountOperands(SU->Node);
|
||||
unsigned NumOps = TID.getNumOperands() - NumRes;
|
||||
for (unsigned j = 0; j != NumOps; ++j) {
|
||||
if (TID.getOperandConstraint(j+NumRes, TOI::TIED_TO) == -1)
|
||||
continue;
|
||||
@ -1289,7 +1289,7 @@ bool BURegReductionPriorityQueue<SF>::canClobber(SUnit *SU, SUnit *Op) {
|
||||
unsigned Opc = SU->Node->getTargetOpcode();
|
||||
const TargetInstrDesc &TID = TII->get(Opc);
|
||||
unsigned NumRes = TID.getNumDefs();
|
||||
unsigned NumOps = ScheduleDAG::CountOperands(SU->Node);
|
||||
unsigned NumOps = TID.getNumOperands() - NumRes;
|
||||
for (unsigned i = 0; i != NumOps; ++i) {
|
||||
if (TID.getOperandConstraint(i+NumRes, TOI::TIED_TO) != -1) {
|
||||
SDNode *DU = SU->Node->getOperand(i).Val;
|
||||
@ -1365,7 +1365,7 @@ void BURegReductionPriorityQueue<SF>::AddPseudoTwoAddrDeps() {
|
||||
unsigned Opc = Node->getTargetOpcode();
|
||||
const TargetInstrDesc &TID = TII->get(Opc);
|
||||
unsigned NumRes = TID.getNumDefs();
|
||||
unsigned NumOps = ScheduleDAG::CountOperands(Node);
|
||||
unsigned NumOps = TID.getNumOperands() - NumRes;
|
||||
for (unsigned j = 0; j != NumOps; ++j) {
|
||||
if (TID.getOperandConstraint(j+NumRes, TOI::TIED_TO) != -1) {
|
||||
SDNode *DU = SU->Node->getOperand(j).Val;
|
||||
|
Loading…
Reference in New Issue
Block a user