[llvm] r340065 - [llvm-mca] Reformat a few lines (fix spacing). NFC.
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 11:06:01 PDT 2018
Author: mattd
Date: Fri Aug 17 11:06:01 2018
New Revision: 340065
URL: http://llvm.org/viewvc/llvm-project?rev=340065&view=rev
Log:
[llvm-mca] Reformat a few lines (fix spacing). NFC.
Modified:
llvm/trunk/tools/llvm-mca/Instruction.h
llvm/trunk/tools/llvm-mca/Scheduler.cpp
llvm/trunk/tools/llvm-mca/Scheduler.h
Modified: llvm/trunk/tools/llvm-mca/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Instruction.h?rev=340065&r1=340064&r2=340065&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Instruction.h (original)
+++ llvm/trunk/tools/llvm-mca/Instruction.h Fri Aug 17 11:06:01 2018
@@ -423,9 +423,7 @@ public:
bool isValid() const {
return Data.first != INVALID_IID && Data.second != nullptr;
}
- bool operator==(const WriteRef &Other) const {
- return Data == Other.Data;
- }
+ bool operator==(const WriteRef &Other) const { return Data == Other.Data; }
#ifndef NDEBUG
void dump() const;
Modified: llvm/trunk/tools/llvm-mca/Scheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Scheduler.cpp?rev=340065&r1=340064&r2=340065&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Scheduler.cpp (original)
+++ llvm/trunk/tools/llvm-mca/Scheduler.cpp Fri Aug 17 11:06:01 2018
@@ -313,7 +313,7 @@ void Scheduler::promoteToReadySet(SmallV
// Scan the set of waiting instructions and promote them to the
// ready queue if operands are all ready.
unsigned RemovedElements = 0;
- for (auto I = WaitSet.begin(), E = WaitSet.end(); I != E; ) {
+ for (auto I = WaitSet.begin(), E = WaitSet.end(); I != E;) {
InstRef &IR = *I;
if (!IR.isValid())
break;
@@ -375,7 +375,7 @@ InstRef Scheduler::select() {
return InstRef();
// We found an instruction to issue.
-
+
InstRef IR = ReadySet[QueueIndex];
std::swap(ReadySet[QueueIndex], ReadySet[ReadySet.size() - 1]);
ReadySet.pop_back();
@@ -392,7 +392,7 @@ void Scheduler::updatePendingQueue(Small
void Scheduler::updateIssuedSet(SmallVectorImpl<InstRef> &Executed) {
unsigned RemovedElements = 0;
- for (auto I = IssuedSet.begin(), E = IssuedSet.end(); I != E; ) {
+ for (auto I = IssuedSet.begin(), E = IssuedSet.end(); I != E;) {
InstRef &IR = *I;
if (!IR.isValid())
break;
Modified: llvm/trunk/tools/llvm-mca/Scheduler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Scheduler.h?rev=340065&r1=340064&r2=340065&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Scheduler.h (original)
+++ llvm/trunk/tools/llvm-mca/Scheduler.h Fri Aug 17 11:06:01 2018
@@ -313,7 +313,7 @@ public:
void releaseBuffers(llvm::ArrayRef<uint64_t> Buffers);
// Reserve a processor resource. A reserved resource is not available for
- // instruction issue until it is released.
+ // instruction issue until it is released.
void reserveResource(uint64_t ResourceID);
// Release a previously reserved processor resource.
More information about the llvm-commits
mailing list