[llvm] r343549 - [llvm-mca] Rename the 'Subtract' method to 'subtract'
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 1 16:01:46 PDT 2018
Author: mattd
Date: Mon Oct 1 16:01:45 2018
New Revision: 343549
URL: http://llvm.org/viewvc/llvm-project?rev=343549&view=rev
Log:
[llvm-mca] Rename the 'Subtract' method to 'subtract'
Modified:
llvm/trunk/tools/llvm-mca/include/Instruction.h
llvm/trunk/tools/llvm-mca/lib/InstrBuilder.cpp
Modified: llvm/trunk/tools/llvm-mca/include/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/include/Instruction.h?rev=343549&r1=343548&r2=343549&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/include/Instruction.h (original)
+++ llvm/trunk/tools/llvm-mca/include/Instruction.h Mon Oct 1 16:01:45 2018
@@ -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;
}
Modified: llvm/trunk/tools/llvm-mca/lib/InstrBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/lib/InstrBuilder.cpp?rev=343549&r1=343548&r2=343549&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/lib/InstrBuilder.cpp (original)
+++ llvm/trunk/tools/llvm-mca/lib/InstrBuilder.cpp Mon Oct 1 16:01:45 2018
@@ -98,7 +98,7 @@ static void initializeUsedResources(Inst
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++;
}
More information about the llvm-commits
mailing list