OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f1d6d6
)
MISched: minor improvement, initialize remaining resources before the first schedulin...
author
Andrew Trick
<atrick@apple.com>
Tue, 18 Dec 2012 20:52:49 +0000
(20:52 +0000)
committer
Andrew Trick
<atrick@apple.com>
Tue, 18 Dec 2012 20:52:49 +0000
(20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170449
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineScheduler.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineScheduler.cpp
b/lib/CodeGen/MachineScheduler.cpp
index
c7afa08
..
d49eda2
100644
(file)
--- a/
lib/CodeGen/MachineScheduler.cpp
+++ b/
lib/CodeGen/MachineScheduler.cpp
@@
-1166,6
+1166,16
@@
init(ScheduleDAGMI *DAG, const TargetSchedModel *SchedModel) {
RemainingCounts[PIdx] += (Factor * PI->Cycles);
}
}
+ for (unsigned PIdx = 0, PEnd = SchedModel->getNumProcResourceKinds();
+ PIdx != PEnd; ++PIdx) {
+ if ((int)(RemainingCounts[PIdx] - RemainingCounts[CritResIdx])
+ >= (int)SchedModel->getLatencyFactor()) {
+ CritResIdx = PIdx;
+ }
+ }
+ MaxRemainingCount = std::max(
+ RemainingMicroOps * SchedModel->getMicroOpFactor(),
+ RemainingCounts[CritResIdx]);
}
void ConvergingScheduler::SchedBoundary::