[llvm] r343549 - [llvm-mca] Rename the 'Subtract' method to 'subtract'
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 1 16:30:31 PDT 2018
This is a NFC, just a minor style change.
> -----Original Message-----
> From: llvm-commits <llvm-commits-bounces at lists.llvm.org> On Behalf Of Matt
> Davis via llvm-commits
> Sent: Monday, October 1, 2018 4:02 PM
> To: llvm-commits at lists.llvm.org
> Subject: [llvm] r343549 - [llvm-mca] Rename the 'Subtract' method to 'subtract'
>
> 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++;
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list