mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Make Scheduling Class variables be 'unsigned' instead of 'int'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1294a7e936
commit
c5ddc8b74b
@ -410,7 +410,7 @@ public:
|
||||
}
|
||||
|
||||
inline unsigned getNumChoicesInClass (const InstrSchedClass& sc) const {
|
||||
assert(sc < (int) numInClass.size() && "Invalid op code or sched class!");
|
||||
assert(sc < numInClass.size() && "Invalid op code or sched class!");
|
||||
return numInClass[sc];
|
||||
}
|
||||
|
||||
@ -429,7 +429,7 @@ public:
|
||||
// Increment numInClass[c] for the sched class to which the instr belongs.
|
||||
choiceVec.push_back(node);
|
||||
const InstrSchedClass& sc = schedInfo.getSchedClass(node->getOpCode());
|
||||
assert(sc < (int) numInClass.size());
|
||||
assert(sc < numInClass.size());
|
||||
numInClass[sc]++;
|
||||
}
|
||||
|
||||
@ -483,7 +483,7 @@ public:
|
||||
|
||||
// and decrement the instr count for the sched class to which it belongs
|
||||
const InstrSchedClass& sc = schedInfo.getSchedClass(node->getOpCode());
|
||||
assert(sc < (int) numInClass.size());
|
||||
assert(sc < numInClass.size());
|
||||
numInClass[sc]--;
|
||||
}
|
||||
|
||||
|
@ -410,7 +410,7 @@ public:
|
||||
}
|
||||
|
||||
inline unsigned getNumChoicesInClass (const InstrSchedClass& sc) const {
|
||||
assert(sc < (int) numInClass.size() && "Invalid op code or sched class!");
|
||||
assert(sc < numInClass.size() && "Invalid op code or sched class!");
|
||||
return numInClass[sc];
|
||||
}
|
||||
|
||||
@ -429,7 +429,7 @@ public:
|
||||
// Increment numInClass[c] for the sched class to which the instr belongs.
|
||||
choiceVec.push_back(node);
|
||||
const InstrSchedClass& sc = schedInfo.getSchedClass(node->getOpCode());
|
||||
assert(sc < (int) numInClass.size());
|
||||
assert(sc < numInClass.size());
|
||||
numInClass[sc]++;
|
||||
}
|
||||
|
||||
@ -483,7 +483,7 @@ public:
|
||||
|
||||
// and decrement the instr count for the sched class to which it belongs
|
||||
const InstrSchedClass& sc = schedInfo.getSchedClass(node->getOpCode());
|
||||
assert(sc < (int) numInClass.size());
|
||||
assert(sc < numInClass.size());
|
||||
numInClass[sc]--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user