diff options
author | Matt Davis <Matthew.Davis@sony.com> | 2018-10-01 23:01:45 +0000 |
---|---|---|
committer | Matt Davis <Matthew.Davis@sony.com> | 2018-10-01 23:01:45 +0000 |
commit | 740cece063097c856a6edeb0ff55d5178d4baca1 (patch) | |
tree | befc19b2969d231270e771096d9745d8d481d852 /llvm | |
parent | 721533163085b42699f3996aa0058a79cbdd0116 (diff) |
[llvm-mca] Rename the 'Subtract' method to 'subtract'
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/llvm-mca/include/Instruction.h | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-mca/lib/InstrBuilder.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/include/Instruction.h b/llvm/tools/llvm-mca/include/Instruction.h index cd9a0d69c02..af471a4efc2 100644 --- a/llvm/tools/llvm-mca/include/Instruction.h +++ b/llvm/tools/llvm-mca/include/Instruction.h @@ -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; } diff --git a/llvm/tools/llvm-mca/lib/InstrBuilder.cpp b/llvm/tools/llvm-mca/lib/InstrBuilder.cpp index 5195ef2fe95..6f776f39668 100644 --- a/llvm/tools/llvm-mca/lib/InstrBuilder.cpp +++ b/llvm/tools/llvm-mca/lib/InstrBuilder.cpp @@ -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++; } |