[llvm-mca] Reformat a few lines (fix spacing). NFC.

llvm-svn: 340065
This commit is contained in:
Matt Davis 2018-08-17 18:06:01 +00:00
parent 5bce7f8b8f
commit 06ac6af297
3 changed files with 5 additions and 7 deletions

View File

@ -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;

View File

@ -313,7 +313,7 @@ void Scheduler::promoteToReadySet(SmallVectorImpl<InstRef> &Ready) {
// 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(SmallVectorImpl<InstRef> &Ready) {
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;

View File

@ -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.