forked from OSchip/llvm-project
[llvm-mca] Rename the 'Subtract' method to 'subtract'
llvm-svn: 343549
This commit is contained in:
parent
90c0a0621c
commit
8e2c75900e
|
@ -246,7 +246,7 @@ public:
|
||||||
|
|
||||||
bool isValid() const { return Begin <= End; }
|
bool isValid() const { return Begin <= End; }
|
||||||
unsigned size() const { return End - Begin; };
|
unsigned size() const { return End - Begin; };
|
||||||
void Subtract(unsigned Cycles) {
|
void subtract(unsigned Cycles) {
|
||||||
assert(End >= Cycles);
|
assert(End >= Cycles);
|
||||||
End -= Cycles;
|
End -= Cycles;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ static void initializeUsedResources(InstrDesc &ID,
|
||||||
for (unsigned J = I + 1; J < E; ++J) {
|
for (unsigned J = I + 1; J < E; ++J) {
|
||||||
ResourcePlusCycles &B = Worklist[J];
|
ResourcePlusCycles &B = Worklist[J];
|
||||||
if ((NormalizedMask & B.first) == NormalizedMask) {
|
if ((NormalizedMask & B.first) == NormalizedMask) {
|
||||||
B.second.CS.Subtract(A.second.size() - SuperResources[A.first]);
|
B.second.CS.subtract(A.second.size() - SuperResources[A.first]);
|
||||||
if (countPopulation(B.first) > 1)
|
if (countPopulation(B.first) > 1)
|
||||||
B.second.NumUnits++;
|
B.second.NumUnits++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue