[llvm-mca] Rename the 'Subtract' method to 'subtract'

llvm-svn: 343549
This commit is contained in:
Matt Davis 2018-10-01 23:01:45 +00:00
parent 90c0a0621c
commit 8e2c75900e
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ public:
bool isValid() const { return Begin <= End; }
unsigned size() const { return End - Begin; };
void Subtract(unsigned Cycles) {
void subtract(unsigned Cycles) {
assert(End >= Cycles);
End -= Cycles;
}

View File

@ -98,7 +98,7 @@ static void initializeUsedResources(InstrDesc &ID,
for (unsigned J = I + 1; J < E; ++J) {
ResourcePlusCycles &B = Worklist[J];
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)
B.second.NumUnits++;
}