mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69261a6442
commit
f94e8c4caf
@ -604,10 +604,8 @@ SUnit *ResourcePriorityQueue::pop() {
|
||||
std::vector<SUnit *>::iterator Best = Queue.begin();
|
||||
if (!DisableDFASched) {
|
||||
signed BestCost = SUSchedulingCost(*Best);
|
||||
for (std::vector<SUnit *>::iterator I = Queue.begin(),
|
||||
for (std::vector<SUnit *>::iterator I = llvm::next(Queue.begin()),
|
||||
E = Queue.end(); I != E; ++I) {
|
||||
if (*I == *Best)
|
||||
continue;
|
||||
|
||||
if (SUSchedulingCost(*I) > BestCost) {
|
||||
BestCost = SUSchedulingCost(*I);
|
||||
|
Loading…
Reference in New Issue
Block a user